summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2020-12-30 21:00:08 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit15e1d1008f05522570a9c80544b7ef24cf7c73df (patch)
tree22287e3d82bb4937cb190af121b8b17ff1bc527f /include
parent77de899d5b1abfabe40371f2f6fa4517ace0e28c (diff)
Board printing
Diffstat (limited to 'include')
-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];