aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-05-03 08:51:31 +0000
committerSimon Tatham <anakin@pobox.com>2004-05-03 08:51:31 +0000
commit6e42ddd31b5ca71f48c6260b01fc49b2451d0a56 (patch)
treedce426839c0855f7726366e51034282538819ff7 /net.c
parenteb88ee0973c9a19b14e2e0e1579ee17625d73e05 (diff)
downloadpuzzles-6e42ddd31b5ca71f48c6260b01fc49b2451d0a56.zip
puzzles-6e42ddd31b5ca71f48c6260b01fc49b2451d0a56.tar.gz
puzzles-6e42ddd31b5ca71f48c6260b01fc49b2451d0a56.tar.bz2
puzzles-6e42ddd31b5ca71f48c6260b01fc49b2451d0a56.tar.xz
Implement selection of game seeds, by reusing the config box
mechanism I've just invented (the midend handles the standard game selection configuration). Each game is now required to validate its own seed data before attempting to base a game on it and potentially confusing itself. [originally from svn r4186]
Diffstat (limited to 'net.c')
-rw-r--r--net.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net.c b/net.c
index 3c28ccc..cf3fe3d 100644
--- a/net.c
+++ b/net.c
@@ -272,6 +272,15 @@ char *new_game_seed(game_params *params)
return dupstr(buf);
}
+char *validate_seed(game_params *params, char *seed)
+{
+ /*
+ * Since any string at all will suffice to seed the RNG, there
+ * is no validation required.
+ */
+ return NULL;
+}
+
/* ----------------------------------------------------------------------
* Construct an initial game state, given a seed and parameters.
*/