aboutsummaryrefslogtreecommitdiff
path: root/guess.c
diff options
context:
space:
mode:
Diffstat (limited to 'guess.c')
-rw-r--r--guess.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/guess.c b/guess.c
index 09f034e..f635fec 100644
--- a/guess.c
+++ b/guess.c
@@ -942,6 +942,8 @@ static game_state *execute_move(const game_state *from, const char *move)
game_state *ret;
const char *p;
+ /* No moves are allowed once the game is solved. */
+ if (from->solved) return NULL;
if (!strcmp(move, "S")) {
ret = dup_game(from);
ret->solved = -1;