diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-21 14:56:55 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | eab1d81df4455eb89b2663dcdd45a024f4633a2e (patch) | |
| tree | 849ec82180af6626e6d8e31f4c7b75761a6a1146 /include/tak.h | |
| parent | bb4d6da7d75de116c2fb6bd50ed96d5c478afd66 (diff) | |
Finally (?) fixed winning avoidance
Diffstat (limited to 'include/tak.h')
| -rw-r--r-- | include/tak.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tak.h b/include/tak.h index 1d49720..135e4eb 100644 --- a/include/tak.h +++ b/include/tak.h @@ -22,7 +22,7 @@ typedef uint16_t colour_stack_t; #define NUM_SHIFT 4 #define NUM_MASK (0xF<<NUM_SHIFT) // 0b11110000 #define NUM_INC (0x1<<NUM_SHIFT) // 0b00010000 -#define STONE_MASK 0b00000011 +#define STONE_MASK 3 // 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) |
