diff options
Diffstat (limited to 'include/tak.h')
| -rw-r--r-- | include/tak.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/tak.h b/include/tak.h index ad0b994..0a97c2d 100644 --- a/include/tak.h +++ b/include/tak.h @@ -19,10 +19,11 @@ enum WIN_TYPE { WIN_DRAW, typedef uint8_t data_t; typedef uint16_t colour_stack_t; -#define NUM_SHIFT 4 -#define STONE_MASK 0b00000011 -#define STONE_AT(l) (celldat[(l)] & STONE_MASK) -#define COUNT_AT(l) (celldat[(l)] >> NUM_SHIFT) +#define NUM_SHIFT 4 +#define NUM_INC (0x1<<NUM_SHIFT) // 0b00010000 +#define STONE_MASK 0b00000011 +#define STONE_AT(l) (celldat[(l)] & STONE_MASK) +#define COUNT_AT(l) (celldat[(l)] >> NUM_SHIFT) #define THE_COORDS(col,row) ((col)+(row)*board_size) extern enum WIN_TYPE won; |
