summaryrefslogtreecommitdiff
path: root/include/tak.h
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2020-12-30 21:00:08 -0500
committertslil <tslil@posteo.de>2020-12-30 21:00:08 -0500
commitfe068540eaab28e0b9fb43632d50b996601bac99 (patch)
tree22287e3d82bb4937cb190af121b8b17ff1bc527f /include/tak.h
parentf2dc7f730cdd0e52a402ac1d5db057803a88c400 (diff)
Board printing
Diffstat (limited to 'include/tak.h')
-rw-r--r--include/tak.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tak.h b/include/tak.h
index d161640..0a6fcf1 100644
--- a/include/tak.h
+++ b/include/tak.h
@@ -20,7 +20,7 @@ typedef uint16_t colour_stack_t;
#define STONE_MASK 0b00000011
#define STONE_AT(l) (celldat[(l)] & STONE_MASK)
#define COUNT_AT(l) (celldat[(l)] >> NUM_SHIFT)
-#define THE_COORDS(x,y) ((x)+(y)*board_size)
+#define THE_COORDS(col,row) ((col)+(row)*board_size)
uint8_t board_size;
data_t celldat[36];