From a32bc9866512886eb56dcdd1197026e8512a4565 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Mon, 25 Jan 2021 00:25:37 -0500 Subject: There are still some bugs in the undo almost surely... --- include/action_list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/action_list.c') diff --git a/include/action_list.c b/include/action_list.c index 50eb266..66435dc 100644 --- a/include/action_list.c +++ b/include/action_list.c @@ -42,8 +42,8 @@ action_list_t *action_list_generate(void) { standing = (ply >= 2 && (material & 127)); // Step across the board - for (uint8_t row = 0; row < board_size; row++) { - for (uint8_t col = 0; col < board_size; col++) { + for (int8_t row = board_size - 1; row > 0; row--) { + for (int8_t col = board_size - 1; col > 0; col--) { // We'll need these at various points: the location of this // square and the maximum number of stones we could pick up const int8_t loc = THE_COORDS(col, row); -- cgit v1.2.3