diff --git a/guess.c b/guess.c index 37195b4..dd6462b 100644 --- a/guess.c +++ b/guess.c @@ -946,13 +946,13 @@ 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; return ret; } else if (move[0] == 'G') { + /* No guesses are allowed once the game is solved. */ + if (from->solved) return NULL; p = move+1; ret = dup_game(from);