chiark / gitweb /
sgt-puzzles.git
17 years agoAfter it confused Verity, clarify in the Unequal docs that the
Simon Tatham [Sun, 25 Feb 2007 23:30:14 +0000 (23:30 +0000)]
After it confused Verity, clarify in the Unequal docs that the
Trivial and Recursive difficulty levels are available for custom
selection even though no preset uses them.

[originally from svn r7336]

17 years agoHardwiring the grid line width to 1 is really bad for printing. Use
Simon Tatham [Sun, 25 Feb 2007 15:57:35 +0000 (15:57 +0000)]
Hardwiring the grid line width to 1 is really bad for printing. Use
a slightly more conventional method of drawing the grid lines, and
thereby fix printing.

[originally from svn r7335]

17 years agoGalaxies doesn't print in colour.
Simon Tatham [Sun, 25 Feb 2007 15:50:24 +0000 (15:50 +0000)]
Galaxies doesn't print in colour.

[originally from svn r7334]

17 years agoDon't create an undo-chain entry for a move with no effect.
Simon Tatham [Sun, 25 Feb 2007 13:00:58 +0000 (13:00 +0000)]
Don't create an undo-chain entry for a move with no effect.

[originally from svn r7333]

17 years agoFix a UI glitch where dragging an existing arrow could change what it
Jacob Nevins [Sun, 25 Feb 2007 12:54:46 +0000 (12:54 +0000)]
Fix a UI glitch where dragging an existing arrow could change what it
referred to.

[originally from svn r7331]

17 years agoTweak the cropping of the Filling icon very slightly.
Simon Tatham [Sun, 25 Feb 2007 12:18:20 +0000 (12:18 +0000)]
Tweak the cropping of the Filling icon very slightly.

[originally from svn r7330]

17 years agoUpdate the checklist (yet again) to try to prevent a recurrence of
Simon Tatham [Sun, 25 Feb 2007 12:12:35 +0000 (12:12 +0000)]
Update the checklist (yet again) to try to prevent a recurrence of
the error I corrected in r7328.

[originally from svn r7329]
[r7328 == b1679913f68675806f88f4682423c99f14a47b02]

17 years agoForgot to enable the Windows icon.
Simon Tatham [Sun, 25 Feb 2007 12:11:47 +0000 (12:11 +0000)]
Forgot to enable the Windows icon.

[originally from svn r7328]

17 years agoMore updates to the new-puzzle checklist.
Simon Tatham [Sun, 25 Feb 2007 12:04:42 +0000 (12:04 +0000)]
More updates to the new-puzzle checklist.

[originally from svn r7327]

17 years agoNew puzzle: `Filling', a Fillomino implementation by Jonas Koelker.
Simon Tatham [Sun, 25 Feb 2007 11:37:05 +0000 (11:37 +0000)]
New puzzle: `Filling', a Fillomino implementation by Jonas Koelker.

[originally from svn r7326]

17 years agoOops. Having built the installer, we need a redirect for it in
Simon Tatham [Sun, 25 Feb 2007 10:10:51 +0000 (10:10 +0000)]
Oops. Having built the installer, we need a redirect for it in
.htaccess.

[originally from svn r7324]

17 years agoBuild an installer for Puzzles.
Simon Tatham [Sat, 24 Feb 2007 19:33:38 +0000 (19:33 +0000)]
Build an installer for Puzzles.

[originally from svn r7319]

17 years agoSomehow I let a couple of // comments get past me when I accepted
Simon Tatham [Sat, 24 Feb 2007 17:34:21 +0000 (17:34 +0000)]
Somehow I let a couple of // comments get past me when I accepted
this file. Remove them.

[originally from svn r7318]

17 years agoPhil Bordelon points out that when I renamed `Recursive' I missed a
Simon Tatham [Thu, 22 Feb 2007 23:18:51 +0000 (23:18 +0000)]
Phil Bordelon points out that when I renamed `Recursive' I missed a
bit.

[originally from svn r7314]

17 years agoRemove spurious semicolons from macros; their upset compilers that don't like
Jacob Nevins [Thu, 22 Feb 2007 21:31:59 +0000 (21:31 +0000)]
Remove spurious semicolons from macros; their upset compilers that don't like
mixing declarations and code (I accidentally tried to compile it with one
such).

[originally from svn r7313]

17 years agoAnd fix the error _I_ made in r7311. I should stop coding now,
Simon Tatham [Thu, 22 Feb 2007 19:05:10 +0000 (19:05 +0000)]
And fix the error _I_ made in r7311. I should stop coding now,
because I'm clearly too sleepy to get it right.

[originally from svn r7312]
[r7311 == 8c0890a331d93c9d12ef782601b9953463872fc6]

17 years agoPart of r7310 completely changed the careful semantics of my
Simon Tatham [Thu, 22 Feb 2007 18:59:15 +0000 (18:59 +0000)]
Part of r7310 completely changed the careful semantics of my
coordinate-rounding, causing picking up arrows from a dot anywhere
other than at the centre of a square to break.

[originally from svn r7311]
[r7310 == a428c5899de86897fe4e92fa6585b3c3908ce2ad]

17 years agoPatch from James H to make the Palm compiler stop objecting to my
Simon Tatham [Thu, 22 Feb 2007 18:13:12 +0000 (18:13 +0000)]
Patch from James H to make the Palm compiler stop objecting to my
(as far as I could tell) perfectly legal use of floats, and also
remove some VC warnings.

[originally from svn r7310]

17 years agoWe may reluctantly permit the returning of a too-easy puzzle if an
Simon Tatham [Thu, 22 Feb 2007 18:09:51 +0000 (18:09 +0000)]
We may reluctantly permit the returning of a too-easy puzzle if an
adequately hard one couldn't be found, but we must never return a
puzzle harder than the user asked for, and we _certainly_ mustn't
return one that we aren't even sure has a unique solution.

However, when I attempted to implement this rule, it turned out that
an attempt to generate a 15x15 Easy puzzle didn't terminate before I
got bored and killed it. I'm therefore retiring the Easy difficulty
level on the grounds that it's not a wide enough band to be useful.
I've renamed Hard to Normal, and (while I was there) renamed
Recursive to Unreasonable in line with my normal practice.

[originally from svn r7309]

17 years agoJames H forgot to credit himself for Galaxies!
Simon Tatham [Thu, 22 Feb 2007 10:06:59 +0000 (10:06 +0000)]
James H forgot to credit himself for Galaxies!

[originally from svn r7308]

17 years agoUpdate the new-puzzle checklist for the post-bob world.
Simon Tatham [Thu, 22 Feb 2007 09:54:52 +0000 (09:54 +0000)]
Update the new-puzzle checklist for the post-bob world.

[originally from svn r7307]

17 years agoMissing uses of \q{}.
Simon Tatham [Thu, 22 Feb 2007 09:50:33 +0000 (09:50 +0000)]
Missing uses of \q{}.

[originally from svn r7305]

17 years agoAdd James Harvey's excellent new puzzle, `Galaxies'.
Simon Tatham [Thu, 22 Feb 2007 09:31:43 +0000 (09:31 +0000)]
Add James Harvey's excellent new puzzle, `Galaxies'.

[originally from svn r7304]

17 years agoForgot to shuffle the num[] array! That was probably introducing
Simon Tatham [Mon, 19 Feb 2007 19:38:00 +0000 (19:38 +0000)]
Forgot to shuffle the num[] array! That was probably introducing
some really subtle probabilistic bias in the generated latin squares.

[originally from svn r7302]

17 years agoReplicate r7285 from PuTTY: make keyboard input work in HTML Help.
Jacob Nevins [Tue, 13 Feb 2007 23:01:50 +0000 (23:01 +0000)]
Replicate r7285 from PuTTY: make keyboard input work in HTML Help.

[originally from svn r7286]
[r7285 == 3d78bf9b261b4bfd30ae00d5ba43744c4144c934 in putty repository]

17 years agoNow we have the new `module' command, use it.
Simon Tatham [Mon, 5 Feb 2007 12:41:21 +0000 (12:41 +0000)]
Now we have the new `module' command, use it.

[originally from svn r7224]

17 years agoReinstate the icons in the Windows binaries.
Simon Tatham [Sun, 4 Feb 2007 14:35:23 +0000 (14:35 +0000)]
Reinstate the icons in the Windows binaries.

[originally from svn r7217]

17 years agoForgot to tag the Mac and Windows binaries with the revision number.
Simon Tatham [Sun, 4 Feb 2007 14:03:52 +0000 (14:03 +0000)]
Forgot to tag the Mac and Windows binaries with the revision number.

[originally from svn r7215]

17 years agoLooking for puzzles*.tar.gz in the right directory is liable to make
Simon Tatham [Sun, 4 Feb 2007 13:44:38 +0000 (13:44 +0000)]
Looking for puzzles*.tar.gz in the right directory is liable to make
the .htaccess build work better :-)

[originally from svn r7214]

17 years agoBuild script for Puzzles using bob. I've also added a piece of extra
Simon Tatham [Sun, 4 Feb 2007 11:44:10 +0000 (11:44 +0000)]
Build script for Puzzles using bob. I've also added a piece of extra
infrastructure to the mkfiles.pl framework for the convenience of
the build script: it generates `wingames.lst', a list of the Windows
binaries which are ship-worthy games as opposed to nullgame or
command-line auxiliary programs.

[originally from svn r7206]

17 years agoMisdirected cross-reference spotted by Jonas Koelker.
Simon Tatham [Sat, 27 Jan 2007 10:25:20 +0000 (10:25 +0000)]
Misdirected cross-reference spotted by Jonas Koelker.

[originally from svn r7172]

17 years agoMarcin Wojdyr points out that the use of `>&' to redirect both
Simon Tatham [Tue, 16 Jan 2007 12:54:24 +0000 (12:54 +0000)]
Marcin Wojdyr points out that the use of `>&' to redirect both
stdout and stderr is non-standard. Switch to a POSIX-blessed
alternative.

[originally from svn r7116]

17 years agoPhil Bordelon points out an off-by-one error: since Solo doesn't use
Simon Tatham [Mon, 15 Jan 2007 23:30:44 +0000 (23:30 +0000)]
Phil Bordelon points out an off-by-one error: since Solo doesn't use
zero as a valid puzzle symbol, it can support at most 35 symbols,
not 36. (This is largely academic since IME anything above about 25
is impractical to generate, but there we go.)

[originally from svn r7115]

17 years agoPatch from James H which shouldn't change the functionality of
Simon Tatham [Mon, 15 Jan 2007 20:21:57 +0000 (20:21 +0000)]
Patch from James H which shouldn't change the functionality of
Loopy, but makes it build more sensibly on the Palm.

[originally from svn r7114]

17 years agoPatch from James H to fix the occasional generation of puzzles
Simon Tatham [Mon, 15 Jan 2007 20:07:18 +0000 (20:07 +0000)]
Patch from James H to fix the occasional generation of puzzles
harder than requested.

[originally from svn r7113]

17 years agoPhil Bordelon points out that the Unequal difficulty settings
Simon Tatham [Mon, 15 Jan 2007 20:04:11 +0000 (20:04 +0000)]
Phil Bordelon points out that the Unequal difficulty settings
documentation is a bit odd, and also offers a signedness fix in
latin.c.

[originally from svn r7112]

17 years agoGive all the intermediate files distinct file names, so that a
Simon Tatham [Sun, 14 Jan 2007 10:13:29 +0000 (10:13 +0000)]
Give all the intermediate files distinct file names, so that a
multi-CPU machine can speed up the icon build using `make -j' and
not have it break.

[originally from svn r7106]

17 years agoFormatting tweaks / index terms in Unequal docs.
Jacob Nevins [Sat, 13 Jan 2007 19:19:21 +0000 (19:19 +0000)]
Formatting tweaks / index terms in Unequal docs.

[originally from svn r7105]

17 years agoFirst time I've added a new puzzle since the icons-and-screenshots
Simon Tatham [Sat, 13 Jan 2007 15:17:55 +0000 (15:17 +0000)]
First time I've added a new puzzle since the icons-and-screenshots
upheaval. Modify the checklist accordingly.

[originally from svn r7103]

17 years agoIcon for Unequal.
Simon Tatham [Sat, 13 Jan 2007 14:59:15 +0000 (14:59 +0000)]
Icon for Unequal.

[originally from svn r7101]

17 years agoAdd James H's new puzzle, `Unequal' (otherwise known as the
Simon Tatham [Sat, 13 Jan 2007 14:44:50 +0000 (14:44 +0000)]
Add James H's new puzzle, `Unequal' (otherwise known as the
Guardian's `Futoshiki').

[originally from svn r7100]

17 years agoRemove a couple of rogue make targets for `osx.icns.o' and
Simon Tatham [Sat, 13 Jan 2007 12:03:42 +0000 (12:03 +0000)]
Remove a couple of rogue make targets for `osx.icns.o' and
`osx-info.plist.o' which had crept into most of the Makefiles.

[originally from svn r7099]

17 years agoRather to my surprise given the amount of testing this code has had,
Simon Tatham [Thu, 11 Jan 2007 09:26:09 +0000 (09:26 +0000)]
Rather to my surprise given the amount of testing this code has had,
Kevin Lyles spotted a tree234 bug! copytree234() segfaulted when
asked to copy a tree containing no elements, due to failing to allow
for the case that t->root might be NULL. Fixed, and added a
regression test.

[originally from svn r7092]

17 years agoIn Windows/Gtk front-ends, consistently use the ellipsis convention for naming
Jacob Nevins [Thu, 4 Jan 2007 19:24:43 +0000 (19:24 +0000)]
In Windows/Gtk front-ends, consistently use the ellipsis convention for naming
menu items which bring up dialogs.

[originally from svn r7058]

17 years agoPhil Bordelon's patch yesterday should have initialised the GError
Simon Tatham [Wed, 3 Jan 2007 09:51:42 +0000 (09:51 +0000)]
Phil Bordelon's patch yesterday should have initialised the GError
to NULL.

[originally from svn r7052]

17 years agoPhil Bordelon points out that my invocation of gdk_pixbuf_save()
Simon Tatham [Tue, 2 Jan 2007 19:45:19 +0000 (19:45 +0000)]
Phil Bordelon points out that my invocation of gdk_pixbuf_save()
isn't quite right.

[originally from svn r7050]

17 years agoIt's a new year.
Jacob Nevins [Mon, 1 Jan 2007 21:19:14 +0000 (21:19 +0000)]
It's a new year.

[originally from svn r7048]
[this svn revision also touched putty,putty-website]

17 years agoDocument the new --game and --load options on Unix.
Jacob Nevins [Sat, 30 Dec 2006 00:50:29 +0000 (00:50 +0000)]
Document the new --game and --load options on Unix.

[originally from svn r7040]

17 years agoMake errors in option parsing actually _do_ something in interactive mode.
Jacob Nevins [Sat, 30 Dec 2006 00:26:16 +0000 (00:26 +0000)]
Make errors in option parsing actually _do_ something in interactive mode.

[originally from svn r7039]

17 years agoBring .R files for nullgame and unfinished puzzles up to date with the rest of
Jacob Nevins [Fri, 29 Dec 2006 22:43:47 +0000 (22:43 +0000)]
Bring .R files for nullgame and unfinished puzzles up to date with the rest of
the world (by adding icon support).

[originally from svn r7038]

17 years agoUpdate manual copyright to 2006.
Jacob Nevins [Fri, 29 Dec 2006 16:42:02 +0000 (16:42 +0000)]
Update manual copyright to 2006.

[originally from svn r7036]

17 years agoAdd NO_HTMLHELP and turn it on by default in Makefile.cyg.
Jacob Nevins [Thu, 28 Dec 2006 21:39:22 +0000 (21:39 +0000)]
Add NO_HTMLHELP and turn it on by default in Makefile.cyg.

[originally from svn r7033]

17 years agoEnhance icon.pl to be a fully general Windows icon builder: it now
Simon Tatham [Thu, 28 Dec 2006 17:07:21 +0000 (17:07 +0000)]
Enhance icon.pl to be a fully general Windows icon builder: it now
supports monochrome icons, can deal with any size of image you're
mad enough to put in there, and will construct icons with whatever
combination of sizes and resolutions you feel like specifying. This
has involved a change in the command-line syntax, hence the
adjustment to Makefile.

(I don't imagine that the changes described here will be critical to
Puzzles any time soon, but I might reuse this script elsewhere and
then I won't want it to have arbitrary limitations.)

[originally from svn r7031]

17 years ago`make all' targets are usually useful.
Simon Tatham [Wed, 27 Dec 2006 16:49:39 +0000 (16:49 +0000)]
`make all' targets are usually useful.

[originally from svn r7026]

17 years agoEr, further makedist fixes. Helps if you test _before_ checkin.
Simon Tatham [Wed, 27 Dec 2006 15:49:16 +0000 (15:49 +0000)]
Er, further makedist fixes. Helps if you test _before_ checkin.

[originally from svn r7025]

17 years agoAnd update makedist.sh to put all the new stuff into the source
Simon Tatham [Wed, 27 Dec 2006 15:36:27 +0000 (15:36 +0000)]
And update makedist.sh to put all the new stuff into the source
tarball.

[originally from svn r7024]

17 years agoFix the Cygwin RCFLAGS in the light of recent changes.
Simon Tatham [Wed, 27 Dec 2006 15:33:43 +0000 (15:33 +0000)]
Fix the Cygwin RCFLAGS in the light of recent changes.

[originally from svn r7023]

17 years agoAha, this seems to be a more sensible way of getting screenshots:
Simon Tatham [Wed, 27 Dec 2006 15:21:55 +0000 (15:21 +0000)]
Aha, this seems to be a more sensible way of getting screenshots:
instead of having the puzzle binary export its window ID to a script
which then runs xwd, we can use the gdk-pixbuf library to have the
puzzle binary _itself_ read its own internal pixmap and save it
straight to a PNG. How handy. And faster, and less timing-sensitive.

[originally from svn r7022]

17 years agoSupport for run-time icons in the GTK puzzles. This involved another
Simon Tatham [Wed, 27 Dec 2006 15:10:59 +0000 (15:10 +0000)]
Support for run-time icons in the GTK puzzles. This involved another
mkfiles.pl change (I don't seem to be planning ahead very well this
week), this time to provide a list of fallback options for an object
file. That way, I have a no-icon.c which quietly replaces
icons/foo-icon.c if the latter doesn't exist, and so again people
checking straight out from Subversion shouldn't have trouble.

[originally from svn r7021]

17 years agoActually introduce the ability to build the Windows icons into the
Simon Tatham [Wed, 27 Dec 2006 11:05:20 +0000 (11:05 +0000)]
Actually introduce the ability to build the Windows icons into the
Windows puzzle binaries. This checkin involves several distinct
changes:
 - mkfiles.pl now has an extra feature: if an object file is listed
   in Recipe with a trailing question mark, it will be considered
   optional, and silently dropped from the makefile if its primary
   source file isn't present at the time mkfiles.pl runs. This means
   people who check out the puzzles from Subversion and just run
   mkfiles.pl shouldn't get build failures; they just won't get the
   icons.
 - all the .R files now use this feature to include an optional
   Windows resource file.
 - the .rc resource source files are built by icons/Makefile.
 - windows.c finds the icon if present and uses it in place of the
   standard Windows application icon.

[originally from svn r7020]

17 years agoImprove the icon images by cropping selected pieces out of most of
Simon Tatham [Wed, 27 Dec 2006 10:26:13 +0000 (10:26 +0000)]
Improve the icon images by cropping selected pieces out of most of
the main screenshots. (A few, like Map, were perfect already.)

In the process I've vertically reflected the puzzle shown in the
Pattern save file, to bring a more interesting piece of it into the
top left corner :-)

[originally from svn r7019]

17 years agoCode to construct Windows icon files for the puzzles, by munging the
Simon Tatham [Tue, 26 Dec 2006 22:00:11 +0000 (22:00 +0000)]
Code to construct Windows icon files for the puzzles, by munging the
screenshots into appropriate sizes and colour depths. This is all
done with a nasty Perl script, because ImageMagick does not output
correct .ICO format. Not sure why; it isn't _that_ hard.

I intend at some point to link the resulting icons into the actual
Windows puzzle binaries, but before then I have to make them
prettier: most of them would benefit from being derived from a
smaller crop of the puzzle screenshot instead of trying to fit the
whole thing in.

[originally from svn r7017]

17 years agoNew mechanism for automatic generation of the puzzle screenshots on
Simon Tatham [Tue, 26 Dec 2006 16:47:28 +0000 (16:47 +0000)]
New mechanism for automatic generation of the puzzle screenshots on
the web, which I hope will also end up being extended to generate
both Windows and X icons for each individual puzzle. The mechanism
is: for each puzzle there's a save file in the `icons' subdirectory
showing a game state which I think is a decent illustration of the
puzzle, and then there's a nasty set of scripts which runs each
puzzle binary, loads that save file, grabs a screenshot using xwd,
and munges it into shape.

In order to support this I've added two new options (--redo and
--windowid) to all the GTK puzzles, which I don't expect ever to be
used outside the icons makefile. I've also added two more options
(--load and --id) which force a GTK puzzle to treat its command-line
option as a save file or as a game ID respectively (the previous
behaviour was always to guess, and sometimes it guessed wrong).

[originally from svn r7014]

17 years agoMinor const fix.
Simon Tatham [Sun, 24 Dec 2006 16:30:45 +0000 (16:30 +0000)]
Minor const fix.

[originally from svn r7013]

17 years agoHTML Help support for Puzzles, with the same kind of automatic
Simon Tatham [Sun, 24 Dec 2006 15:56:47 +0000 (15:56 +0000)]
HTML Help support for Puzzles, with the same kind of automatic
fallback behaviour as PuTTY's support.

[originally from svn r7009]

17 years agoAbility to build a .CHM for Puzzles. I haven't yet arranged for it
Simon Tatham [Sat, 23 Dec 2006 08:44:51 +0000 (08:44 +0000)]
Ability to build a .CHM for Puzzles. I haven't yet arranged for it
to be used by the Windows binaries; that's the next step.

[originally from svn r7006]

17 years agoSmall printing fix from Gary Wong. Shows up when printing with
Simon Tatham [Thu, 21 Dec 2006 17:11:56 +0000 (17:11 +0000)]
Small printing fix from Gary Wong. Shows up when printing with
solutions: the rightmost and lowermost lines of the grid never get
solution lines drawn on them.

[originally from svn r7003]

17 years agoFix a couple of rounding errors in Inertia's gem-drawing code which
Simon Tatham [Fri, 24 Nov 2006 18:24:01 +0000 (18:24 +0000)]
Fix a couple of rounding errors in Inertia's gem-drawing code which
didn't happen to show up at the default resolution but made the gem
slightly skewed at larger sizes.

[originally from svn r6919]

17 years agoOptionally label the colours in Guess with letters of the alphabet.
Simon Tatham [Thu, 23 Nov 2006 13:17:31 +0000 (13:17 +0000)]
Optionally label the colours in Guess with letters of the alphabet.
Labels are toggled on and off by pressing L (just like Map). Might
help colour-blind users, and might also make it easier to describe
game positions to other people because `abbc' has fewer syllables
than `red, yellow, yellow, green', and hugely fewer letters if
you're typing it.

[originally from svn r6916]

17 years agoPatch I've had lurking around for over a year and not remembered to
Simon Tatham [Mon, 20 Nov 2006 10:20:46 +0000 (10:20 +0000)]
Patch I've had lurking around for over a year and not remembered to
commit: arrange that midend_set_timer(), hence game_timing_state(),
is called when the game_ui is changed. This allows timed games to
work by obscuring the initial layout until an initial click causes
it to be revealed, without requiring that they store that reveal
operation as a move in the undo chain. Not that any games actually
do this, but it's clearly a sensible thing to want to do: since
game_timing_state() _receives_ a game_ui as a parameter, obviously
it should be consulted when the game_ui changes.

[originally from svn r6914]

17 years agoJames H's Palm-compatibility updates to the latest Loopy changes,
Simon Tatham [Wed, 1 Nov 2006 13:25:25 +0000 (13:25 +0000)]
James H's Palm-compatibility updates to the latest Loopy changes,
working around bugs in the Palm compiler and removing Palm-
incompatible diagnostics such as fprintf.

[originally from svn r6889]

17 years agoMike's changes to dsf.c alter the internal storage format of dsf
Simon Tatham [Wed, 1 Nov 2006 11:31:20 +0000 (11:31 +0000)]
Mike's changes to dsf.c alter the internal storage format of dsf
structures, meaning that ad-hoc initialisation now doesn't work.
Hence, this checkin converts all ad-hoc dsf initialisations into
calls to dsf_init() or snew_dsf(). At least, I _hope_ I've caught
all of them.

[originally from svn r6888]

17 years agoMinimal (i.e., lame) update to Loopy documentation to match reality -- it's
Jacob Nevins [Sun, 29 Oct 2006 17:40:45 +0000 (17:40 +0000)]
Minimal (i.e., lame) update to Loopy documentation to match reality -- it's
been wrong since r6299.

[originally from svn r6884]
[r6299 == c389f623f66fe5296f7ef5c66d88884607b82cff]

17 years agoI'm sick and tired of having unfinished puzzle code lying around on
Simon Tatham [Sun, 29 Oct 2006 09:41:02 +0000 (09:41 +0000)]
I'm sick and tired of having unfinished puzzle code lying around on
several different systems in strange directories. So I'm creating an
`unfinished' directory within source control, and centralising all
my half-finished, half-baked or otherwise half-arsed puzzle
implementations into it. Herewith Sokoban (playable but rubbish
generation), Pearl (Masyu - rubbish generation and nothing else),
Path (Number Link - rubbish generation and nothing else) and NumGame
(the Countdown numbers game - currently just a solver and not even a
generator yet).

[originally from svn r6883]

17 years agor6880 accidentally backed out r6780. That's what I get for accepting
Simon Tatham [Sun, 29 Oct 2006 09:34:09 +0000 (09:34 +0000)]
r6880 accidentally backed out r6780. That's what I get for accepting
source files from Mike rather than patches, and not adequately
checking the result...

[originally from svn r6882]
[r6780 == f05c25347d66821d928668a7e87dffbf3ffed027]
[r6880 == b9547673c6462bf73e642328300479df6df71d7b]

17 years agoMike Pinna has done some major reworking of the Loopy solver, giving
Simon Tatham [Sat, 28 Oct 2006 15:38:53 +0000 (15:38 +0000)]
Mike Pinna has done some major reworking of the Loopy solver, giving
rise to a new Hard difficulty level.

[originally from svn r6880]

17 years agoCouple of minor errors.
Simon Tatham [Tue, 17 Oct 2006 08:25:40 +0000 (08:25 +0000)]
Couple of minor errors.

[originally from svn r6872]

17 years agoForgot to put the new .R files into makedist.sh. Oops!
Simon Tatham [Wed, 6 Sep 2006 08:23:15 +0000 (08:23 +0000)]
Forgot to put the new .R files into makedist.sh. Oops!

[originally from svn r6849]

17 years agoJesse W points out that I forgot to update the OS X front end in
Simon Tatham [Fri, 25 Aug 2006 07:10:59 +0000 (07:10 +0000)]
Jesse W points out that I forgot to update the OS X front end in
r6420, so both drawing.c _and_ the front end were prepending the
time to the front of the Mines status bar, leading to a double
timestamp.

[originally from svn r6796]
[r6420 == 240b6cab8ce8729b7270a0411ab39038814058f1]

17 years agoAlways something. Mention `svn add'ing the .R file in the new-puzzle
Simon Tatham [Sat, 5 Aug 2006 17:25:09 +0000 (17:25 +0000)]
Always something. Mention `svn add'ing the .R file in the new-puzzle
checklist, and mention the now-not-version-controlled list.c in
svn:ignore.

[originally from svn r6782]

17 years agoI'm sick of repeatedly adding and removing local changes to Recipe
Simon Tatham [Sat, 5 Aug 2006 17:20:29 +0000 (17:20 +0000)]
I'm sick of repeatedly adding and removing local changes to Recipe
when testing a new game, so here's a new architecture for the Recipe
file. mkfiles.pl now supports several new features:

 - an `!include' directive, which accepts wildcards
 - += to append to an existing object group definition
 - the ability to divert output to an arbitrary file.

So now each puzzle has a `.R' file containing a fragment of Recipe
code describing that puzzle, and the central Recipe does `!include
*.R' to construct the Makefiles. That way, I can keep as many
experimental half-finished puzzles lying around my working directory
as I like, and I won't have to keep reverting Recipe when I check in
any other changes.

As part of this change, list.c is no longer a version-controlled
file; it's now constructed by mkfiles.pl, so that it too can take
advantage of this mechanism.

[originally from svn r6781]

17 years agoExtra utility function.
Simon Tatham [Sat, 5 Aug 2006 16:35:25 +0000 (16:35 +0000)]
Extra utility function.

[originally from svn r6780]

17 years agoRandom docs cleanups I've collected together.
Simon Tatham [Fri, 7 Jul 2006 13:59:16 +0000 (13:59 +0000)]
Random docs cleanups I've collected together.

[originally from svn r6749]

17 years agoSince r6711, puzzles built with Gtk 1.2 would take double actions when a menu
Jacob Nevins [Mon, 26 Jun 2006 22:01:51 +0000 (22:01 +0000)]
Since r6711, puzzles built with Gtk 1.2 would take double actions when a menu
accelerator key (N/U/R/Q) was pressed -- once for the menu accelerator, and
once more in key_event().
This workaround, while unlovely, should at least not break in future (since the
things it relies on are unlikely to change).

[originally from svn r6745]
[r6711 == 077aa510c78f3273bd0d4ca4f1ca14780822ebf9]

18 years agoTrivial patch from Ben Hutchings to support resizable windows under
Simon Tatham [Sat, 20 May 2006 12:06:41 +0000 (12:06 +0000)]
Trivial patch from Ben Hutchings to support resizable windows under
GTK. All the infrastructure in the midend and beyond was already
there; it was just a matter of enabling it!

[originally from svn r6712]

18 years agoBen Hutchings's patch to add display of key accelerators in the Game
Simon Tatham [Sat, 20 May 2006 12:01:55 +0000 (12:01 +0000)]
Ben Hutchings's patch to add display of key accelerators in the Game
menu.

[originally from svn r6711]

18 years agoPatch from Ben Hutchings to prevent an ugly special case in
Simon Tatham [Sat, 20 May 2006 11:58:24 +0000 (11:58 +0000)]
Patch from Ben Hutchings to prevent an ugly special case in
&splitline in which a line is `split' into a line ending in a
backslash followed by a completely blank line.

[originally from svn r6710]

18 years agoCleanup patch from Ben Hutchings, fixing some odd-looking range
Simon Tatham [Sat, 20 May 2006 11:54:21 +0000 (11:54 +0000)]
Cleanup patch from Ben Hutchings, fixing some odd-looking range
checks. He thinks they were harmless (due to being followed by other
range checks in RIGHTOF_DOT and friends) but it clearly can't hurt
to fix them anyway.

[originally from svn r6709]

18 years agoPatch from Ben Hutchings to prevent memory leakage during Loopy game
Simon Tatham [Sat, 20 May 2006 11:52:22 +0000 (11:52 +0000)]
Patch from Ben Hutchings to prevent memory leakage during Loopy game
generation.

[originally from svn r6708]

18 years agoTidy up comments.
Simon Tatham [Sun, 12 Mar 2006 09:06:27 +0000 (09:06 +0000)]
Tidy up comments.

[originally from svn r6601]

18 years agoIntroduce a new deductive mode in Slant's Hard level, which is the
Simon Tatham [Mon, 6 Mar 2006 20:03:27 +0000 (20:03 +0000)]
Introduce a new deductive mode in Slant's Hard level, which is the
generalisation of the previous deduction involving two 3s or two 1s
either adjacent or separated by a row of contiguous 2s. I always
said that was an ugly loop and really ought to arise naturally as a
special case of something more believable, and here it is.

The practical upshot is that Hard mode has just become slightly
harder: some grids generated by the new Slant will be unsolvable by
the old one's solver. I don't think it's become _excessively_ more
hard; I think I'm happy with the new difficulty level. (In
particular, I don't think the new level is sufficiently harder than
the old to make it worth preserving the old one as Medium or
anything like that.)

[originally from svn r6591]

18 years ago"Hold" function in Guess was completely broken.
Jacob Nevins [Fri, 3 Mar 2006 20:04:13 +0000 (20:04 +0000)]
"Hold" function in Guess was completely broken.
Fix it, add holds to the undo history (by analogy with Net), and save the
current holds in saved games.
Also fix a couple of unrelated minor issues with string encoding.

[originally from svn r6590]

18 years agoI've been pondering whether to do this for months: turn the rather
Simon Tatham [Thu, 2 Mar 2006 19:39:46 +0000 (19:39 +0000)]
I've been pondering whether to do this for months: turn the rather
washed-out yellow and green in Guess into their full-brightness pure
forms. This makes them hard to see against some backgrounds, so I'm
also surrounding all coloured pegs with black outlines. Looks a
little cartoony, but I think it's an overall improvement on the
previous look.

[originally from svn r6589]

18 years agoMines's error signalling is highly asymmetric: if you erroneously
Simon Tatham [Mon, 20 Feb 2006 19:51:50 +0000 (19:51 +0000)]
Mines's error signalling is highly asymmetric: if you erroneously
believe a square to be empty, you find out instantly and lethally,
but if you erroneously believe a square to be full you can
occasionally (when it doesn't cause a complementary square to be
assumed empty) not notice until you find at the very end of the game
that you're one mine heavy. To help with this, here's an error
highlighting patch: any number square surrounded by an excess of
flags will now light up red. This should be an unintrusive change,
because it will never happen unless you make a mistake.

[originally from svn r6580]

18 years agoSmall docs patch from Phil Bordelon adding more history of Sudoku.
Simon Tatham [Sun, 19 Feb 2006 12:54:17 +0000 (12:54 +0000)]
Small docs patch from Phil Bordelon adding more history of Sudoku.

[originally from svn r6575]

18 years agoPatch from Phil Bordelon to improve Bridges' appearance by adjusting
Simon Tatham [Sun, 19 Feb 2006 12:42:46 +0000 (12:42 +0000)]
Patch from Phil Bordelon to improve Bridges' appearance by adjusting
the font size.

[originally from svn r6573]

18 years agoTal Kelrich spotted that hitting `Solve' on a configuration which is
Simon Tatham [Tue, 7 Feb 2006 21:45:50 +0000 (21:45 +0000)]
Tal Kelrich spotted that hitting `Solve' on a configuration which is
laser-indistinguishable from the right solution _but_ has a number
of balls outside the acceptable range does not report an error. His
example was the game ID w8h8m5M5:1e3e6e80fa3e16265ccef7ca , omitting
the rightmost ball in the second row.

[originally from svn r6542]

18 years agoIt's a new year.
Jacob Nevins [Sun, 8 Jan 2006 18:18:11 +0000 (18:18 +0000)]
It's a new year.

[originally from svn r6513]
[this svn revision also touched halibut,putty,putty-website]

18 years agoRevert a change in an assertion made in r6299. It was right the
Simon Tatham [Thu, 5 Jan 2006 09:40:51 +0000 (09:40 +0000)]
Revert a change in an assertion made in r6299. It was right the
first time, and now has a comment explaining why!

[originally from svn r6511]
[r6299 == c389f623f66fe5296f7ef5c66d88884607b82cff]

18 years agoAdd some random index terms. ("Sudoku" wasn't in the index!)
Jacob Nevins [Tue, 27 Dec 2005 15:36:21 +0000 (15:36 +0000)]
Add some random index terms. ("Sudoku" wasn't in the index!)

[originally from svn r6509]