diff options
| author | tslil <tslil@posteo.de> | 2021-01-15 16:16:52 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | f5df4d3710c94822a6602a3e4936287ea5d61bab (patch) | |
| tree | b735539db0e8ad18e9a1747fd45da9ba6f9969ee /include/tak.c | |
| parent | 4ec810a2bb0ed393e59e0a03f8c98ec09805e989 (diff) | |
Changed function back to macro
Diffstat (limited to 'include/tak.c')
| -rw-r--r-- | include/tak.c | 2 |
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; |
