summaryrefslogtreecommitdiff
path: root/include/tak.c
diff options
context:
space:
mode:
Diffstat (limited to 'include/tak.c')
-rw-r--r--include/tak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tak.c b/include/tak.c
index 657df9d..2ddb78b 100644
--- a/include/tak.c
+++ b/include/tak.c
@@ -126,7 +126,7 @@ try_move(const int8_t location, const enum MOVE_DIRECTION direction,
// Game is over?
if (won < 0xFF) return GAME_END;
// Can't do this
- if (steps == 0 || steps > 5) return ACT_ILLEGAL;
+ if (steps == 0 || steps > board_size) return ACT_ILLEGAL;
// Check for stones at all
const uint8_t avail = COUNT_AT(location);
if (avail == 0) return ACT_ILLEGAL;