The game IDs for Net (and Netslide) have always been random seeds
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 16 May 2005 18:57:09 +0000 (18:57 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 16 May 2005 18:57:09 +0000 (18:57 +0000)
commit1185e3c5eaf5a0ac405e14939e7ee818914e0701
tree1610b5799b6aa87e85a6af301b11e3989332e1da
parent36d01ffa8154db198db95b4cc3f788a430c7fee2
The game IDs for Net (and Netslide) have always been random seeds
rather than literal grid descriptions, which has always faintly
annoyed me because it makes it impossible to type in a grid from
another source. However, Gareth pointed out that short random-seed
game descriptions are useful, because you can read one out to
someone else without having to master the technology of cross-
machine cut and paste, or you can have two people enter the same
random seed simultaneously in order to race against each other to
complete the same puzzle. So both types of game ID seem to have
their uses.

Therefore, here's a reorganisation of the whole game ID concept.
There are now two types of game ID: one has a parameter string then
a hash then a piece of arbitrary random seed text, and the other has
a parameter string then a colon then a literal game description. For
most games, the latter is identical to the game IDs that were
previously valid; for Net and Netslide, old game IDs must be
translated into new ones by turning the colon into a hash, and
there's a new descriptive game ID format.

Random seed IDs are not guaranteed to be portable between software
versions (this is a major reason why I added version reporting
yesterday). Descriptive game IDs have a longer lifespan.

As an added bonus, I've removed the sections of documentation
dealing with game parameter encodings not shown in the game ID
(Rectangles expansion factor, Solo symmetry and difficulty settings
etc), because _all_ parameters must be specified in a random seed ID
and therefore users can easily find out the appropriate parameter
string for any settings they have configured.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5788 cda61777-01e9-0310-a592-d414129be87e
16 files changed:
cube.c
fifteen.c
gtk.c
midend.c
net.c
netslide.c
nullgame.c
osx.m
pattern.c
puzzles.but
puzzles.h
rect.c
sixteen.c
solo.c
twiddle.c
windows.c