65 Commits

Author SHA1 Message Date
137c1d7bbd Added a help file, mostly thanks to Jacob.
[originally from svn r4460]
2004-08-16 12:23:56 +00:00
fc862ce0f2 Fix a memory leak.
[originally from svn r4239]
2004-05-22 13:07:23 +00:00
350683b253 Introduce routines in each game module to encode a set of game
parameters as a string, and decode it again. This is used in
midend.c to prepend the game parameters to the game seed, so that
copying out of the Specific box is sufficient to completely specify
the game you were playing.
Throughout development of these games I have referred to `seed'
internally, and `game ID' externally. Now there's a measurable
difference between them! :-)

[originally from svn r4231]
2004-05-19 11:57:09 +00:00
ba076fbdb2 Fix `visible' calculation (again).
[originally from svn r4223]
2004-05-12 18:54:16 +00:00
3c2a320143 Ahem. Seed validation was completely broken.
[originally from svn r4222]
2004-05-12 18:53:47 +00:00
1ea3c92c17 During redraws, I now do corner analysis centrally, which enables me
to maintain the `visible' array accurately and hence actually switch
it on. This prevents us having to redraw the entire playing area on
any move, which means really big grids are now sensibly playable
without display lag.

[originally from svn r4221]
2004-05-12 18:45:11 +00:00
3f9e52dae2 Remove vestigial code from the previous attempt at clever grid
generation. Grid generation should now be orders of magnitude faster
at large sizes.

[originally from svn r4220]
2004-05-12 18:28:11 +00:00
0579ca1005 Fiddle with the coordinate system to see if I can improve user
experience.

[originally from svn r4219]
2004-05-12 12:33:03 +00:00
87aec91b37 Flash on completion. Two people actually complained! :-)
[originally from svn r4218]
2004-05-12 12:32:27 +00:00
3ccdce2f6c Missing draw_update call.
[originally from svn r4216]
2004-05-11 23:22:08 +00:00
8a67b0ed2c Cosmetic fixes for Windows.
[originally from svn r4212]
2004-05-11 18:46:10 +00:00
eb8a374d0d We should turn off the dragging variables in the UI _whenever_
`enddrag' is TRUE, not just when the end of the drag was within a
sensible range.

[originally from svn r4210]
2004-05-11 18:32:48 +00:00
e5d773604f Rectangles is now actually playable, since I've used the new UI
feature to arrange a mechanism that allows you to draw a whole
rectangle at a time by dragging rather than having to click each
edge individually.

[originally from svn r4209]
2004-05-11 18:29:49 +00:00
180802b362 Framework alteration: we now support a `game_ui' structure in
addition to the `game_state'. The new structure is intended to
contain ephemeral data pertaining to the game's user interface
rather than the actual game: things stored in the UI structure are
not restored in an Undo, for example.
make_move() is passed the UI to modify as it wishes; it is now
allowed to return the _same_ game_state it was passed, to indicate
that although no move has been made there has been a UI operation
requiring a redraw.

[originally from svn r4207]
2004-05-11 17:44:30 +00:00
a1c88470a3 Added a new game, `Rectangles', taken from nikoli.co.jp.
[originally from svn r4206]
2004-05-11 17:06:50 +00:00