88 Commits

Author SHA1 Message Date
b18c86241d Bah; r4954 introduced an array overrun.
[originally from svn r4955]
[r4954 == 47e9419452a9fca895f1c84412ab1040d1aa86a5]
2004-12-08 09:37:57 +00:00
47e9419452 Game completion detection was occasionally failing to spot a
lingering GRID_UNKNOWN, causing it to declare victory too soon.

[originally from svn r4954]
2004-12-08 08:08:00 +00:00
03e455c2c6 New puzzle: `pattern'.
[originally from svn r4953]
2004-12-07 20:00:58 +00:00
150b1e66de Move MODULE files out of individual project directories into a
MODULES top-level directory, which is where the Tartarus website
scripts will (hopefully) start reading them from.

[originally from svn r4813]
[this svn revision also touched charset,enigma,filter,halibut,putty,pycee,sdlgames,timber]
2004-11-18 11:30:39 +00:00
9c49948892 Remove .cvsignore files on all active branches.
[originally from svn r4788]
[this svn revision also touched bmbm,caltrap,charset,enigma,filter,fonts,golem,grunge,halibut,html,lj,local,misc,polyhedra,putty,putty-website,putty-wishlist,pycee,sdlgames,svn-tools,timber,tweak]
2004-11-16 15:29:14 +00:00
f99b527b54 Move the deactivate_timer() call from window_destroy() into
destroy(). I'm not sure how it cured the crash-on-quit bug, since it
was in completely the wrong place!

[originally from svn r4533]
2004-09-06 15:17:59 +00:00
1dc9cf5811 Deactivate the timer when we destroy the puzzle window. Otherwise it
might run again in mid-shutdown and cause chaos, if you hit `q' in
the middle of an animated sequence such as the Net finishing flash.

[originally from svn r4525]
2004-09-01 11:46:51 +00:00
a7b1697b1c Now we have the `dir' parameter, we should use it where it makes
sense to do so.

[originally from svn r4477]
2004-08-17 19:59:14 +00:00
ae63b8010b Remove extraneous underscores at start and end of Rectangles seeds.
[originally from svn r4473]
2004-08-17 11:51:20 +00:00
2b392a9d5a Net's redraw function now uses the `dir' argument to determine whether it's
redrawing an undo. Seems to work.

[originally from svn r4470]
2004-08-16 16:51:18 +00:00
daac529a9e After discussion with Simon, the game redraw functions are now passed a new
argument `dir' which tells them whether this redraw is due to an undo, rather
than have them second-guess it from game state.
Note that none of the actual games yet take advantage of this; so it hasn't
been tested in anger (although it has been inspected by debugging).

[originally from svn r4469]
2004-08-16 16:29:54 +00:00
f1e8a586b5 UI nit: make cursor visible upon use of A/S/D keyboard controls.
[originally from svn r4467]
2004-08-16 13:54:41 +00:00
306f69868b This repository needs to have a copy of mkfiles.pl, although really
I'd prefer to be able to share a single instance with PuTTY.

[originally from svn r4466]
2004-08-16 13:52:06 +00:00
59be96c1d7 Clarify that difficulty does not increase forever as you increase
the expansion factor...

[originally from svn r4465]
2004-08-16 13:17:40 +00:00
58769376e5 Robustness in the face of a completely configurable expansion factor.
[originally from svn r4464]
2004-08-16 13:10:07 +00:00
fa8cc94e45 Moved my puzzle collection out into ixion's main CVS area, so here's
a MODULE file.

[originally from svn r4463]
2004-08-16 12:45:35 +00:00
f825732316 Just for convenience, a docs Makefile, outside the main mkfiles.pl
structure.

[originally from svn r4462]
2004-08-16 12:43:03 +00:00
d58d5c11d5 Fold in the expanded-grid mechanism for generating different kinds
of puzzle. Configurable option, turned off by default, and not
propagated in game IDs (though you can explicitly specify it in
command-line parameters, and the docs explain how).

[originally from svn r4461]
2004-08-16 12:42:11 +00:00
137c1d7bbd Added a help file, mostly thanks to Jacob.
[originally from svn r4460]
2004-08-16 12:23:56 +00:00
f2c240343f Failed to connect up the `destroy' signal in error_box(), causing
gtk_main_quit not to get called, with the result that the whole game
ended up running one gtk_main level lower down. This meant that
final dialog box processing was not performed, so that (for example)
selecting 1x1 in Net, hitting OK and getting an error box, then
selecting a different size and hitting OK again failed to change to
the new size.

[originally from svn r4376]
2004-07-30 12:16:57 +00:00
d98160f4cb HACKING should be in .cvsignore.
[originally from svn r4322]
2004-07-05 10:32:26 +00:00
8158b5350d Richard B's utterly evil `netslide': cross between Net and Sixteen.
[originally from svn r4257]
2004-05-26 09:07:14 +00:00
8b9dedcf75 Added the beginnings of a hacking guide.
[originally from svn r4255]
2004-05-24 13:07:28 +00:00
9b71ae8fd7 makedist.sh should be silent.
[originally from svn r4240]
2004-05-22 13:08:18 +00:00
fc862ce0f2 Fix a memory leak.
[originally from svn r4239]
2004-05-22 13:07:23 +00:00
61f08e7634 Now that we have string-encodable game parameters, let's support a
command-line argument which is either a set of parameters or a
params+seed game ID.

[originally from svn r4234]
2004-05-20 08:22:49 +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
97493ac8d1 Rename the Windows Net executable, due to its clash with the system
net.exe.

[originally from svn r4215]
2004-05-11 19:32:05 +00:00
ed9b669b29 Now we have the UI abstraction, use it to implement keyboard control
in Net.

[originally from svn r4214]
2004-05-11 19:24:22 +00:00
a03b4b467f And I _always_ forget to clear the background when first drawing the
display of a new game, so I'll add it to nullgame.c and hope that
makes me remember it next time!

[originally from svn r4213]
2004-05-11 18:46:36 +00:00
8a67b0ed2c Cosmetic fixes for Windows.
[originally from svn r4212]
2004-05-11 18:46:10 +00:00
cdfc740fe4 Don't rush move animation to a conclusion on a subsequent keypress
unless there's actual activity happening as a result of the move.
Net animations were tending to get rushed to conclusion by the mouse
button release now that it's being reported to the mid-end.

[originally from svn r4211]
2004-05-11 18:37:20 +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
a8a50014e9 Oops - missed a bit in the GTK front end :-)
[originally from svn r4208]
2004-05-11 17:45:45 +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
20921e613e Forgot to initialise the font variables in the Windows frontend structure.
[originally from svn r4200]
2004-05-04 11:20:47 +00:00
7ba4c00b98 Forgot to set up the initial value of checkboxes.
[originally from svn r4199]
2004-05-04 10:24:08 +00:00
2f999a9a59 dupstr() should take a const char *. In particular, this allows
compilation under GTK 2.

[originally from svn r4198]
2004-05-04 09:56:38 +00:00
33de1a833e Net puzzles more than 32 tiles wide weren't working properly due to
me testing the wrong variables for clicks on the tile border...

[originally from svn r4197]
2004-05-04 09:18:33 +00:00
5106190ad2 Peter Maydell points out that the README misspells `Makefile' as
`Makefile.gtk'.

[originally from svn r4196]
2004-05-04 08:33:28 +00:00
17214d1764 Uninitialised variable caused ultra-wide windows. Silly.
[originally from svn r4195]
2004-05-04 08:28:47 +00:00