aboutsummaryrefslogtreecommitdiff
path: root/puzzles.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-06-17 18:54:58 +0000
committerSimon Tatham <anakin@pobox.com>2005-06-17 18:54:58 +0000
commitf01f82105e5feb2586a2ca257947d76e9b982d04 (patch)
treef1a99cc46e8a333c750616969d740dd540f0f44b /puzzles.h
parent32111ef901daba8b9168736f9a52bec8f6e95c98 (diff)
downloadpuzzles-f01f82105e5feb2586a2ca257947d76e9b982d04.zip
puzzles-f01f82105e5feb2586a2ca257947d76e9b982d04.tar.gz
puzzles-f01f82105e5feb2586a2ca257947d76e9b982d04.tar.bz2
puzzles-f01f82105e5feb2586a2ca257947d76e9b982d04.tar.xz
Infrastructure change which I've been thinking about for a while:
the back end function solve_game() now takes the _current_ game_state in addition to the initial one. [originally from svn r5969]
Diffstat (limited to 'puzzles.h')
-rw-r--r--puzzles.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/puzzles.h b/puzzles.h
index f3aee1a..0dbc7f8 100644
--- a/puzzles.h
+++ b/puzzles.h
@@ -248,7 +248,8 @@ struct game {
game_state *(*dup_game)(game_state *state);
void (*free_game)(game_state *state);
int can_solve;
- game_state *(*solve)(game_state *state, game_aux_info *aux, char **error);
+ game_state *(*solve)(game_state *orig, game_state *curr,
+ game_aux_info *aux, char **error);
int can_format_as_text;
char *(*text_format)(game_state *state);
game_ui *(*new_ui)(game_state *state);