aboutsummaryrefslogtreecommitdiff
path: root/include/action_list.c
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-25 00:25:37 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commita32bc9866512886eb56dcdd1197026e8512a4565 (patch)
tree814f885ec7147df76277c131c7edc1e956688aa5 /include/action_list.c
parent3db577276b055ff7c8a8ed22302e9333ca679c26 (diff)
There are still some bugs in the undo almost surely...
Diffstat (limited to 'include/action_list.c')
-rw-r--r--include/action_list.c4
1 files changed, 2 insertions, 2 deletions
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);