chiark / gitweb /
sgt-puzzles.git
19 years agoIntroduced a new function in every game which formats a game_state
Simon Tatham [Sun, 1 May 2005 12:53:41 +0000 (12:53 +0000)]
Introduced a new function in every game which formats a game_state
as text. This is used by front ends to implement copy-to-clipboard.
Currently the function does nothing (and is disabled) in every game
except Solo, but it's a start.

[originally from svn r5724]

19 years agoI can never remember what that `TRUE' means in the game structure
Simon Tatham [Sun, 1 May 2005 11:07:13 +0000 (11:07 +0000)]
I can never remember what that `TRUE' means in the game structure
definitions, so let's move it so that it's just next to the
functions it relates to. This also opens the way for me to add more
booleans next to other functions without getting confused as to
which is which.

[originally from svn r5723]

19 years agoRemove outdated comment :-)
Simon Tatham [Sun, 1 May 2005 10:57:47 +0000 (10:57 +0000)]
Remove outdated comment :-)

[originally from svn r5722]

19 years agoI think Windows fonts look better in bold as well.
Simon Tatham [Sun, 1 May 2005 10:57:23 +0000 (10:57 +0000)]
I think Windows fonts look better in bold as well.

[originally from svn r5721]

19 years agoFix game IDs, which I broke in the orientability change. Also
Simon Tatham [Sat, 30 Apr 2005 14:50:33 +0000 (14:50 +0000)]
Fix game IDs, which I broke in the orientability change. Also
introduce a sensible game ID notation for orientable games, and
finally (*blush*) turn the orientability triangles back the right
way up.

[originally from svn r5718]

19 years agoAfter brainstorming with Gareth, we've decided that this is a much
Simon Tatham [Sat, 30 Apr 2005 14:38:20 +0000 (14:38 +0000)]
After brainstorming with Gareth, we've decided that this is a much
simpler and better way to indicate tile orientation than those
colour bars.

[originally from svn r5717]

19 years agoBah, and of course there's a TODO comment I forgot to remove.
Simon Tatham [Sat, 30 Apr 2005 14:14:37 +0000 (14:14 +0000)]
Bah, and of course there's a TODO comment I forgot to remove.

[originally from svn r5714]

19 years agoTwiddle now has an additional mode in which tile orientation
Simon Tatham [Sat, 30 Apr 2005 14:14:14 +0000 (14:14 +0000)]
Twiddle now has an additional mode in which tile orientation
matters. This mode is hard enough to scare the wossnames out of me,
but that's no reason not to put it in anyway!

[originally from svn r5713]

19 years agoPango-derived fonts seem to generally look better if I ask for them
Simon Tatham [Sat, 30 Apr 2005 13:11:22 +0000 (13:11 +0000)]
Pango-derived fonts seem to generally look better if I ask for them
in bold.

[originally from svn r5709]

19 years agoNew puzzle: `twiddle', generalised from a random door-unlocking
Simon Tatham [Sat, 30 Apr 2005 12:54:22 +0000 (12:54 +0000)]
New puzzle: `twiddle', generalised from a random door-unlocking
gadget in Metroid Prime 2.

[originally from svn r5708]

19 years agoAdded a `--generate' command-line option in the GTK port of every
Simon Tatham [Fri, 29 Apr 2005 17:07:19 +0000 (17:07 +0000)]
Added a `--generate' command-line option in the GTK port of every
puzzle, to make it construcct puzzle IDs and output them on stdout.
Also checked in print.py, a script which reads puzzle IDs on stdin
and produces PostScript output. With these, you can generate pages
of Pattern, Rectangles and Solo puzzles to take on trains with you.

[originally from svn r5707]

19 years agoCorrect block coordinate display when standalone solver shows its
Simon Tatham [Fri, 29 Apr 2005 08:11:01 +0000 (08:11 +0000)]
Correct block coordinate display when standalone solver shows its
working.

[originally from svn r5706]

19 years agoAha, even better: a Makefile hack that causes auto-detection of GTK
Simon Tatham [Thu, 28 Apr 2005 12:50:56 +0000 (12:50 +0000)]
Aha, even better: a Makefile hack that causes auto-detection of GTK
2 and fallback to GTK 1.2.

[originally from svn r5705]

19 years agoFix inconsistent vertical centring of text in GTK (and update Solo's
Simon Tatham [Wed, 27 Apr 2005 19:44:34 +0000 (19:44 +0000)]
Fix inconsistent vertical centring of text in GTK (and update Solo's
todo list, which complained about this because Solo was the only
puzzle noticeably affected).

[originally from svn r5694]

19 years agoPatches for GTK 2. Puzzles already _built_ under GTK 2, but now it
Simon Tatham [Wed, 27 Apr 2005 19:39:20 +0000 (19:39 +0000)]
Patches for GTK 2. Puzzles already _built_ under GTK 2, but now it
builds better:
 - the GTK makefile now defines $(GTK_CONFIG) which you can
   override, so you can build for GTK 2 with no makefile-editing
   simply by running `make GTK_CONFIG="pkg_config gtk+-2.0"'
 - we use Pango to find appropriate fonts, which means the text in
   the puzzles actually (gasp!) adapts its size to the
   circumstances. Unfortunately, I've been unable to do this
   portably without depending on _either_ a Pango function that
   isn't present in older versions _or_ the underlying window system
   being X11; I'd appreciate someone doing better.

[originally from svn r5693]

19 years agoCommand-line solver was dividing up non-square puzzles the wrong way
Simon Tatham [Wed, 27 Apr 2005 16:59:18 +0000 (16:59 +0000)]
Command-line solver was dividing up non-square puzzles the wrong way
round.

[originally from svn r5691]

19 years agoPattern also contains an internal solver, so here's a command-line
Simon Tatham [Wed, 27 Apr 2005 11:13:33 +0000 (11:13 +0000)]
Pattern also contains an internal solver, so here's a command-line
interface to it just in case it comes in handy.

[originally from svn r5686]

19 years agoThe command-line solver's difficulty gradings now use the same
Simon Tatham [Tue, 26 Apr 2005 17:03:56 +0000 (17:03 +0000)]
The command-line solver's difficulty gradings now use the same
terminology as the puzzle GUI.

[originally from svn r5683]

19 years agoImplement the remaining modes of reasoning in nsolve, and thus
Simon Tatham [Tue, 26 Apr 2005 11:19:00 +0000 (11:19 +0000)]
Implement the remaining modes of reasoning in nsolve, and thus
enable configurable puzzle difficulty. I'm only generating grids up
to Times level (complicated non-recursive analysis but guessing
never required); I wouldn't object to providing a Telegraph
difficulty level (guessing required) but it turns out to be very
hard indeed to generate at random. I might still add it later
(probably under the name `Unreasonable' :-) if I can think of an
efficient way to find them.

[originally from svn r5682]

19 years agoFix trivial UI glitch involving clicking on the border outside the
Simon Tatham [Tue, 26 Apr 2005 08:20:25 +0000 (08:20 +0000)]
Fix trivial UI glitch involving clicking on the border outside the
grid. I'm really starting to get annoyed by the default round-
towards-zero behaviour of C integer division.

[originally from svn r5681]

19 years agoRemove some legacy debugging code which was breaking the MinGW
Simon Tatham [Mon, 25 Apr 2005 14:37:33 +0000 (14:37 +0000)]
Remove some legacy debugging code which was breaking the MinGW
build, and which is redundant given the new standalone solver
functionality.

[originally from svn r5672]

19 years agoOops; _actually_ add the reasoning mode I mentioned in the last
Simon Tatham [Mon, 25 Apr 2005 14:17:14 +0000 (14:17 +0000)]
Oops; _actually_ add the reasoning mode I mentioned in the last
checkin.

[originally from svn r5671]

19 years agoVarious changes prompted by my boss taking an interest:
Simon Tatham [Mon, 25 Apr 2005 14:03:53 +0000 (14:03 +0000)]
Various changes prompted by my boss taking an interest:
 - added a compilation option -DSTANDALONE_SOLVER which makes both
   of Solo's internal solvers accessible from the command line.
 - fix a bug in nsolve turned up by testing in this mode: it failed
   to iterate at all! Oddly, this massive improvement to the
   effectiveness of nsolve hasn't emptied the generated grids by
   very much.
 - add an extra mode of reasoning to my to-do list (which is the
   dual of one already there, so I'm kicking myself).

[originally from svn r5670]

19 years agoOutstandingly cute mathematical transformation which allows me to
Simon Tatham [Sun, 24 Apr 2005 10:06:47 +0000 (10:06 +0000)]
Outstandingly cute mathematical transformation which allows me to
lose a lot of code duplication in nsolve while preserving efficiency.

[originally from svn r5667]

19 years agoIntroduce configurable symmetry type in generated puzzles, and drop
Simon Tatham [Sun, 24 Apr 2005 09:21:57 +0000 (09:21 +0000)]
Introduce configurable symmetry type in generated puzzles, and drop
the default symmetry from order-4 down to order-2, which seems to
mitigate the excessively-full-grid problem by permitting more
freedom to remove stuff.

[originally from svn r5666]

19 years agoDoc tweaks for Solo.
Jacob Nevins [Sat, 23 Apr 2005 18:16:54 +0000 (18:16 +0000)]
Doc tweaks for Solo.

[originally from svn r5665]

19 years agoSimplify clip region handling under Windows, which also makes Solo's
Simon Tatham [Sat, 23 Apr 2005 17:09:19 +0000 (17:09 +0000)]
Simplify clip region handling under Windows, which also makes Solo's
clipping policy work properly. I haven't proved why it didn't work
the previous way, but I have a good guess: I think that clip regions
are handled by reference. So I saved the old clip region out of the
DC, then did an IntersectClipRect, and then selected the old clip
region back in again - but the old clip region had never been
_de_-selected, because IntersectClipRect didn't change which object
was selected but rather it modified-in-place the one that already
was selected. So my attempt to restore the old clip region did
nothing whatsoever, and thus clipping to two different rectangles
during the same draw sequence failed. Now I'm completely destroying
the clip region during unclip(), which seems to work better.

[originally from svn r5662]

19 years agoVisual C points out a couple of typos.
Simon Tatham [Sat, 23 Apr 2005 16:41:35 +0000 (16:41 +0000)]
Visual C points out a couple of typos.

[originally from svn r5661]

19 years agoInitial checkin of `Solo', the number-placing puzzle popularised by
Simon Tatham [Sat, 23 Apr 2005 16:35:28 +0000 (16:35 +0000)]
Initial checkin of `Solo', the number-placing puzzle popularised by
the Times under the name `Sudoku'.

[originally from svn r5660]

19 years agoOops. Just noticed that the Windows front end completely ignores the
Simon Tatham [Tue, 15 Mar 2005 14:24:45 +0000 (14:24 +0000)]
Oops. Just noticed that the Windows front end completely ignores the
`colour' parameter in draw_text().

[originally from svn r5507]

19 years agoStop the Pattern grid generation from generating an entire row or
Simon Tatham [Thu, 24 Feb 2005 09:13:06 +0000 (09:13 +0000)]
Stop the Pattern grid generation from generating an entire row or
column of the same colour (at least when the dimensions are big
enough to make this feasible). It's a little bit too easy otherwise!

[originally from svn r5391]

19 years agoFixes in grid generation for pedantic special cases when one or both
Simon Tatham [Thu, 24 Feb 2005 08:13:32 +0000 (08:13 +0000)]
Fixes in grid generation for pedantic special cases when one or both
grid dimensions are very small.

[originally from svn r5390]

19 years agoI've found NSView's setNeedsDisplayInRect: method, which is
Simon Tatham [Sat, 5 Feb 2005 16:43:13 +0000 (16:43 +0000)]
I've found NSView's setNeedsDisplayInRect: method, which is
obviously better than just calling setNeedsDisplay on the whole
thing...

[originally from svn r5258]

19 years agoNeed to impose a _maximum_ width on edit boxes, as well as a minimum
Simon Tatham [Tue, 25 Jan 2005 21:19:28 +0000 (21:19 +0000)]
Need to impose a _maximum_ width on edit boxes, as well as a minimum
width; if allowed to resize to the text within them, they look
terribly silly when containing an entire Rectangles or Pattern game
ID.

[originally from svn r5210]

19 years agoSanitising the mouse input data was a good idea, but my
Simon Tatham [Tue, 25 Jan 2005 18:07:08 +0000 (18:07 +0000)]
Sanitising the mouse input data was a good idea, but my
implementation sucked. Revise it completely.

[originally from svn r5209]

19 years agoInclude code in midend.c to sanitise streams of mouse events so that
Simon Tatham [Tue, 25 Jan 2005 14:07:46 +0000 (14:07 +0000)]
Include code in midend.c to sanitise streams of mouse events so that
back ends can be assured of always receiving them in a sensible
sequence (button-down, followed by zero or more drags, followed by
button-up, and never changing button in the middle of such a
sequence). I have a suspicion this issue was the cause of the
mysterious Pattern grid updates seen by Dan during testing last
night.

[originally from svn r5208]

19 years agoAhem. Lots of stuff, including the new OS X sources, was being left
Simon Tatham [Tue, 25 Jan 2005 09:07:54 +0000 (09:07 +0000)]
Ahem. Lots of stuff, including the new OS X sources, was being left
out of the tarball by makedist.sh, causing the downloaded source
tree to fail mkfiles.pl. Worse still, the GTK Makefile wasn't
included, so people _needed_ to run mkfiles.pl! Both now fixed, I
think.

[originally from svn r5205]

19 years agoUpdates for OS X port (including updating copyright statements).
Simon Tatham [Mon, 24 Jan 2005 15:45:37 +0000 (15:45 +0000)]
Updates for OS X port (including updating copyright statements).

[originally from svn r5201]

19 years agoAhem. Rogue copy and paste was causing preset menu items to go into
Simon Tatham [Mon, 24 Jan 2005 14:10:16 +0000 (14:10 +0000)]
Ahem. Rogue copy and paste was causing preset menu items to go into
the Help menu rather than the Type menu. Fixed.

[originally from svn r5199]

19 years ago`make release' target, which builds a .dmg disk image in what
Simon Tatham [Mon, 24 Jan 2005 13:44:24 +0000 (13:44 +0000)]
`make release' target, which builds a .dmg disk image in what
appears to be the approved Apple fashion.

[originally from svn r5197]

19 years agoHelp should have the shortcut Command-?.
Simon Tatham [Mon, 24 Jan 2005 13:04:37 +0000 (13:04 +0000)]
Help should have the shortcut Command-?.

[originally from svn r5195]

19 years agoImprove OS X help: split back up into multiple files (thanks to
Simon Tatham [Mon, 24 Jan 2005 13:00:11 +0000 (13:00 +0000)]
Improve OS X help: split back up into multiple files (thanks to
Halibut's new \cfg{html-local-head} directive), and add some CSS to
mimic the font choices of system help files.

[originally from svn r5194]

19 years agoThe #definition of COMBINED was done very badly: it was a piece of
Simon Tatham [Mon, 24 Jan 2005 12:09:51 +0000 (12:09 +0000)]
The #definition of COMBINED was done very badly: it was a piece of
platform-dependent code in puzzles.h (ick), which in turn depended
on the magic symbol MAC_OS_X being defined by mkfiles.pl itself
(yuck). Suddenly realised I can do much better simply by putting it
in an OS X makefile extras section in Recipe, and removing both
previous hacks. Much nicer.

[originally from svn r5191]

19 years agoFirst cut at online help under OS X. I just built the HTML version
Simon Tatham [Mon, 24 Jan 2005 12:05:21 +0000 (12:05 +0000)]
First cut at online help under OS X. I just built the HTML version
of the manual using Halibut (with one additional magic tag in the
<HEAD> section), stuck it in the right part of the application
bundle, referenced it in Info.plist, and added a Help menu.
Everything else was automatic. Not bad!

[originally from svn r5190]

19 years agoThe main grid outline in Pattern was asymmetric between the top/left
Simon Tatham [Mon, 24 Jan 2005 10:50:17 +0000 (10:50 +0000)]
The main grid outline in Pattern was asymmetric between the top/left
edges and the bottom/right ones. Fix it. (Also remove it from the
todo list in osx.m, where I had entered it in the assumption that it
was a bug in my new OS X port! Turns out it's an entirely platform-
independent bug.)

[originally from svn r5187]

19 years agoFix two window-resizing bugs introduced by the addition of the status bar.
Simon Tatham [Mon, 24 Jan 2005 10:45:23 +0000 (10:45 +0000)]
Fix two window-resizing bugs introduced by the addition of the status bar.

[originally from svn r5186]

19 years agoImprove fatal error handling.
Simon Tatham [Mon, 24 Jan 2005 10:35:54 +0000 (10:35 +0000)]
Improve fatal error handling.

[originally from svn r5185]

19 years agoAdded a dock menu which makes it more convenient to launch a new
Simon Tatham [Mon, 24 Jan 2005 07:42:01 +0000 (07:42 +0000)]
Added a dock menu which makes it more convenient to launch a new
game window.

[originally from svn r5184]

19 years agoStatus bar support.
Simon Tatham [Mon, 24 Jan 2005 07:37:50 +0000 (07:37 +0000)]
Status bar support.

[originally from svn r5183]

19 years agoImplemented the configurable dialog box mechanism, allowing custom
Simon Tatham [Sun, 23 Jan 2005 22:28:18 +0000 (22:28 +0000)]
Implemented the configurable dialog box mechanism, allowing custom
game sizes and entering of specific game IDs. I think this is now a
plausibly usable port, even if still by no means _finished_.

[originally from svn r5182]

19 years agoAdded a framework for putting things other than the binary into a
Simon Tatham [Sun, 23 Jan 2005 11:20:31 +0000 (11:20 +0000)]
Added a framework for putting things other than the binary into a
Mac OS X application bundle, and provided an icon for Puzzles.

Also renamed the OS X source file from macosx.m to osx.m, so that it
can sit beside other things such as osx-info.plist and not cause
enormously long filenames.

[originally from svn r5179]

19 years agoAh, no, _that_ fixes the malloc problem. I'd forgotten that midend.c
Simon Tatham [Sun, 23 Jan 2005 09:59:45 +0000 (09:59 +0000)]
Ah, no, _that_ fixes the malloc problem. I'd forgotten that midend.c
already takes care of managing the allocation of game presets, so
there's no need for me to introduce scary ObjC machinery to do so in
the frontend.

[originally from svn r5178]

19 years agoI _think_ this has just fixed an uninitialised-memory bug, but I'm
Simon Tatham [Sun, 23 Jan 2005 09:37:16 +0000 (09:37 +0000)]
I _think_ this has just fixed an uninitialised-memory bug, but I'm
not sure.

[originally from svn r5177]

19 years agoDynamically frob the menu bar to achieve selection of game presets.
Simon Tatham [Sun, 23 Jan 2005 09:17:46 +0000 (09:17 +0000)]
Dynamically frob the menu bar to achieve selection of game presets.

[originally from svn r5176]

19 years agoFlesh out the menus a bit.
Simon Tatham [Sun, 23 Jan 2005 08:36:24 +0000 (08:36 +0000)]
Flesh out the menus a bit.

[originally from svn r5175]

19 years agoUpdate TODO.
Simon Tatham [Sat, 22 Jan 2005 18:46:51 +0000 (18:46 +0000)]
Update TODO.

[originally from svn r5174]

19 years agoInitial checkin of a Mac OS X port of puzzles, using Cocoa. All
Simon Tatham [Sat, 22 Jan 2005 18:34:18 +0000 (18:34 +0000)]
Initial checkin of a Mac OS X port of puzzles, using Cocoa. All
puzzles are compiled together into a single monolithic application
which allows you to select each one from one of its menus.

[originally from svn r5173]

19 years agoArrange that we really _can_ compile all the puzzles into a single
Simon Tatham [Sat, 22 Jan 2005 15:29:01 +0000 (15:29 +0000)]
Arrange that we really _can_ compile all the puzzles into a single
binary if we choose: fix bugs in cube.c and sixteen.c that manifest
when compiled that way, and introduce list.c which provides a global
list of all the available puzzles.

[originally from svn r5169]

19 years agoRather than each game backend file exporting a whole load of
Simon Tatham [Mon, 17 Jan 2005 13:48:57 +0000 (13:48 +0000)]
Rather than each game backend file exporting a whole load of
functions and a couple of variables, now each one exports a single
structure containing a load of function pointers and said variables.
This should make it easy to support platforms on which it's sensible
to compile all the puzzles into a single monolithic application. The
two existing platforms are still one-binary-per-game.

[originally from svn r5126]

19 years agoAdd a `jumble' key (`J') to Net, which scrambles the positions of all unlocked
Jacob Nevins [Wed, 22 Dec 2004 19:27:26 +0000 (19:27 +0000)]
Add a `jumble' key (`J') to Net, which scrambles the positions of all unlocked
tiles randomly. (Rachel asked for this; it's been being tested for a good few
months now, and Simon didn't care either way, so in it goes :)

As part of this, the front end can now be asked to provide a random random
seed (IYSWIM).

[originally from svn r5019]

19 years agoAdd grotty casts to prevent negative -> large positive conversion of cursor
Jacob Nevins [Fri, 17 Dec 2004 22:00:20 +0000 (22:00 +0000)]
Add grotty casts to prevent negative -> large positive conversion of cursor
position in Windows frontend; this showed up as a UI glitch while dragging to
the left/top of the window in Rectangles.

[originally from svn r5007]

19 years agoTweak Pattern doc for consistency with other puzzles.
Jacob Nevins [Wed, 8 Dec 2004 13:42:55 +0000 (13:42 +0000)]
Tweak Pattern doc for consistency with other puzzles.

[originally from svn r4957]

19 years agoBah; r4954 introduced an array overrun.
Simon Tatham [Wed, 8 Dec 2004 09:37:57 +0000 (09:37 +0000)]
Bah; r4954 introduced an array overrun.

[originally from svn r4955]
[r4954 == 47e9419452a9fca895f1c84412ab1040d1aa86a5]

19 years agoGame completion detection was occasionally failing to spot a
Simon Tatham [Wed, 8 Dec 2004 08:08:00 +0000 (08:08 +0000)]
Game completion detection was occasionally failing to spot a
lingering GRID_UNKNOWN, causing it to declare victory too soon.

[originally from svn r4954]

19 years agoNew puzzle: `pattern'.
Simon Tatham [Tue, 7 Dec 2004 20:00:58 +0000 (20:00 +0000)]
New puzzle: `pattern'.

[originally from svn r4953]

19 years agoMove MODULE files out of individual project directories into a
Simon Tatham [Thu, 18 Nov 2004 11:30:39 +0000 (11:30 +0000)]
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]

19 years agoRemove .cvsignore files on all active branches.
Simon Tatham [Tue, 16 Nov 2004 15:29:14 +0000 (15:29 +0000)]
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]

19 years agoMove the deactivate_timer() call from window_destroy() into
Simon Tatham [Mon, 6 Sep 2004 15:17:59 +0000 (15:17 +0000)]
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]

19 years agoDeactivate the timer when we destroy the puzzle window. Otherwise it
Simon Tatham [Wed, 1 Sep 2004 11:46:51 +0000 (11:46 +0000)]
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]

19 years agoNow we have the `dir' parameter, we should use it where it makes
Simon Tatham [Tue, 17 Aug 2004 19:59:14 +0000 (19:59 +0000)]
Now we have the `dir' parameter, we should use it where it makes
sense to do so.

[originally from svn r4477]

19 years agoRemove extraneous underscores at start and end of Rectangles seeds.
Simon Tatham [Tue, 17 Aug 2004 11:51:20 +0000 (11:51 +0000)]
Remove extraneous underscores at start and end of Rectangles seeds.

[originally from svn r4473]

19 years agoNet's redraw function now uses the `dir' argument to determine whether it's
Jacob Nevins [Mon, 16 Aug 2004 16:51:18 +0000 (16:51 +0000)]
Net's redraw function now uses the `dir' argument to determine whether it's
redrawing an undo. Seems to work.

[originally from svn r4470]

19 years agoAfter discussion with Simon, the game redraw functions are now passed a new
Jacob Nevins [Mon, 16 Aug 2004 16:29:54 +0000 (16:29 +0000)]
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]

19 years agoUI nit: make cursor visible upon use of A/S/D keyboard controls.
Jacob Nevins [Mon, 16 Aug 2004 13:54:41 +0000 (13:54 +0000)]
UI nit: make cursor visible upon use of A/S/D keyboard controls.

[originally from svn r4467]

19 years agoThis repository needs to have a copy of mkfiles.pl, although really
Simon Tatham [Mon, 16 Aug 2004 13:52:06 +0000 (13:52 +0000)]
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]

19 years agoClarify that difficulty does not increase forever as you increase
Simon Tatham [Mon, 16 Aug 2004 13:17:40 +0000 (13:17 +0000)]
Clarify that difficulty does not increase forever as you increase
the expansion factor...

[originally from svn r4465]

19 years agoRobustness in the face of a completely configurable expansion factor.
Simon Tatham [Mon, 16 Aug 2004 13:10:07 +0000 (13:10 +0000)]
Robustness in the face of a completely configurable expansion factor.

[originally from svn r4464]

19 years agoMoved my puzzle collection out into ixion's main CVS area, so here's
Simon Tatham [Mon, 16 Aug 2004 12:45:35 +0000 (12:45 +0000)]
Moved my puzzle collection out into ixion's main CVS area, so here's
a MODULE file.

[originally from svn r4463]

19 years agoJust for convenience, a docs Makefile, outside the main mkfiles.pl
Simon Tatham [Mon, 16 Aug 2004 12:43:03 +0000 (12:43 +0000)]
Just for convenience, a docs Makefile, outside the main mkfiles.pl
structure.

[originally from svn r4462]

19 years agoFold in the expanded-grid mechanism for generating different kinds
Simon Tatham [Mon, 16 Aug 2004 12:42:11 +0000 (12:42 +0000)]
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]

19 years agoAdded a help file, mostly thanks to Jacob.
Simon Tatham [Mon, 16 Aug 2004 12:23:56 +0000 (12:23 +0000)]
Added a help file, mostly thanks to Jacob.

[originally from svn r4460]

19 years agoFailed to connect up the `destroy' signal in error_box(), causing
Simon Tatham [Fri, 30 Jul 2004 12:16:57 +0000 (12:16 +0000)]
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]

19 years agoHACKING should be in .cvsignore.
Simon Tatham [Mon, 5 Jul 2004 10:32:26 +0000 (10:32 +0000)]
HACKING should be in .cvsignore.

[originally from svn r4322]

19 years agoRichard B's utterly evil `netslide': cross between Net and Sixteen.
Simon Tatham [Wed, 26 May 2004 09:07:14 +0000 (09:07 +0000)]
Richard B's utterly evil `netslide': cross between Net and Sixteen.

[originally from svn r4257]

19 years agoAdded the beginnings of a hacking guide.
Simon Tatham [Mon, 24 May 2004 13:07:28 +0000 (13:07 +0000)]
Added the beginnings of a hacking guide.

[originally from svn r4255]

20 years agomakedist.sh should be silent.
Simon Tatham [Sat, 22 May 2004 13:08:18 +0000 (13:08 +0000)]
makedist.sh should be silent.

[originally from svn r4240]

20 years agoFix a memory leak.
Simon Tatham [Sat, 22 May 2004 13:07:23 +0000 (13:07 +0000)]
Fix a memory leak.

[originally from svn r4239]

20 years agoNow that we have string-encodable game parameters, let's support a
Simon Tatham [Thu, 20 May 2004 08:22:49 +0000 (08:22 +0000)]
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]

20 years agoIntroduce routines in each game module to encode a set of game
Simon Tatham [Wed, 19 May 2004 11:57:09 +0000 (11:57 +0000)]
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]

20 years agoFix `visible' calculation (again).
Simon Tatham [Wed, 12 May 2004 18:54:16 +0000 (18:54 +0000)]
Fix `visible' calculation (again).

[originally from svn r4223]

20 years agoAhem. Seed validation was completely broken.
Simon Tatham [Wed, 12 May 2004 18:53:47 +0000 (18:53 +0000)]
Ahem. Seed validation was completely broken.

[originally from svn r4222]

20 years agoDuring redraws, I now do corner analysis centrally, which enables me
Simon Tatham [Wed, 12 May 2004 18:45:11 +0000 (18:45 +0000)]
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]

20 years agoRemove vestigial code from the previous attempt at clever grid
Simon Tatham [Wed, 12 May 2004 18:28:11 +0000 (18:28 +0000)]
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]

20 years agoFiddle with the coordinate system to see if I can improve user
Simon Tatham [Wed, 12 May 2004 12:33:03 +0000 (12:33 +0000)]
Fiddle with the coordinate system to see if I can improve user
experience.

[originally from svn r4219]

20 years agoFlash on completion. Two people actually complained! :-)
Simon Tatham [Wed, 12 May 2004 12:32:27 +0000 (12:32 +0000)]
Flash on completion. Two people actually complained! :-)

[originally from svn r4218]

20 years agoMissing draw_update call.
Simon Tatham [Tue, 11 May 2004 23:22:08 +0000 (23:22 +0000)]
Missing draw_update call.

[originally from svn r4216]

20 years agoRename the Windows Net executable, due to its clash with the system
Simon Tatham [Tue, 11 May 2004 19:32:05 +0000 (19:32 +0000)]
Rename the Windows Net executable, due to its clash with the system
net.exe.

[originally from svn r4215]

20 years agoNow we have the UI abstraction, use it to implement keyboard control
Simon Tatham [Tue, 11 May 2004 19:24:22 +0000 (19:24 +0000)]
Now we have the UI abstraction, use it to implement keyboard control
in Net.

[originally from svn r4214]

20 years agoAnd I _always_ forget to clear the background when first drawing the
Simon Tatham [Tue, 11 May 2004 18:46:36 +0000 (18:46 +0000)]
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]

20 years agoCosmetic fixes for Windows.
Simon Tatham [Tue, 11 May 2004 18:46:10 +0000 (18:46 +0000)]
Cosmetic fixes for Windows.

[originally from svn r4212]