612 Commits

Author SHA1 Message Date
8b1b6bc9a3 Oops. Having built the installer, we need a redirect for it in
.htaccess.

[originally from svn r7324]
2007-02-25 10:10:51 +00:00
b05cb1eaf3 Build an installer for Puzzles.
[originally from svn r7319]
2007-02-24 19:33:38 +00:00
63e5783d7e Somehow I let a couple of // comments get past me when I accepted
this file. Remove them.

[originally from svn r7318]
2007-02-24 17:34:21 +00:00
027bf40f67 Phil Bordelon points out that when I renamed `Recursive' I missed a
bit.

[originally from svn r7314]
2007-02-22 23:18:51 +00:00
2b384fae11 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]
2007-02-22 21:31:59 +00:00
9f9a1368a9 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]
2007-02-22 19:05:10 +00:00
8c0890a331 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]
2007-02-22 18:59:15 +00:00
a428c5899d 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]
2007-02-22 18:13:12 +00:00
9d9e02f1d5 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]
2007-02-22 18:09:51 +00:00
86ee29ac48 James H forgot to credit himself for Galaxies!
[originally from svn r7308]
2007-02-22 10:06:59 +00:00
da185cd658 Update the new-puzzle checklist for the post-bob world.
[originally from svn r7307]
2007-02-22 09:54:52 +00:00
58995720c4 Missing uses of \q{}.
[originally from svn r7305]
2007-02-22 09:50:33 +00:00
e137ad8b1a Add James Harvey's excellent new puzzle, `Galaxies'.
[originally from svn r7304]
2007-02-22 09:31:43 +00:00
aa6fb75072 Forgot to shuffle the num[] array! That was probably introducing
some really subtle probabilistic bias in the generated latin squares.

[originally from svn r7302]
2007-02-19 19:38:00 +00:00
d68ba4b21e Replicate r7285 from PuTTY: make keyboard input work in HTML Help.
[originally from svn r7286]
[r7285 == 3d78bf9b261b4bfd30ae00d5ba43744c4144c934 in putty repository]
2007-02-13 23:01:50 +00:00
da4606ddd5 Now we have the new `module' command, use it.
[originally from svn r7224]
2007-02-05 12:41:21 +00:00
ac72b6e148 Reinstate the icons in the Windows binaries.
[originally from svn r7217]
2007-02-04 14:35:23 +00:00
19a298baf4 Forgot to tag the Mac and Windows binaries with the revision number.
[originally from svn r7215]
2007-02-04 14:03:52 +00:00
8df3cdf7d6 Looking for puzzles*.tar.gz in the right directory is liable to make
the .htaccess build work better :-)

[originally from svn r7214]
2007-02-04 13:44:38 +00:00
dd1cee7537 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]
2007-02-04 11:44:10 +00:00
215cf19577 Misdirected cross-reference spotted by Jonas Koelker.
[originally from svn r7172]
2007-01-27 10:25:20 +00:00
d836b60dbe 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]
2007-01-16 12:54:24 +00:00
a7f19c87a9 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]
2007-01-15 23:30:44 +00:00
cb57de3e44 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]
2007-01-15 20:21:57 +00:00
472deca37c Patch from James H to fix the occasional generation of puzzles
harder than requested.

[originally from svn r7113]
2007-01-15 20:07:18 +00:00
7a41702606 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]
2007-01-15 20:04:11 +00:00
ea71043500 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]
2007-01-14 10:13:29 +00:00
f43c5c9280 Formatting tweaks / index terms in Unequal docs.
[originally from svn r7105]
2007-01-13 19:19:21 +00:00
41d9b1aab5 First time I've added a new puzzle since the icons-and-screenshots
upheaval. Modify the checklist accordingly.

[originally from svn r7103]
2007-01-13 15:17:55 +00:00
5732aa6c6f Icon for Unequal.
[originally from svn r7101]
2007-01-13 14:59:15 +00:00
2f8dba9257 Add James H's new puzzle, `Unequal' (otherwise known as the
Guardian's `Futoshiki').

[originally from svn r7100]
2007-01-13 14:44:50 +00:00
9993f71e4c 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]
2007-01-13 12:03:42 +00:00
c06e371f55 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]
2007-01-11 09:26:09 +00:00
7c59e7259f In Windows/Gtk front-ends, consistently use the ellipsis convention for naming
menu items which bring up dialogs.

[originally from svn r7058]
2007-01-04 19:24:43 +00:00
14ed4e9b1e Phil Bordelon's patch yesterday should have initialised the GError
to NULL.

[originally from svn r7052]
2007-01-03 09:51:42 +00:00
7848918bac Phil Bordelon points out that my invocation of gdk_pixbuf_save()
isn't quite right.

[originally from svn r7050]
2007-01-02 19:45:19 +00:00
21127b78eb It's a new year.
[originally from svn r7048]
[this svn revision also touched putty,putty-website]
2007-01-01 21:19:14 +00:00
7c736c4c1f Document the new --game and --load options on Unix.
[originally from svn r7040]
2006-12-30 00:50:29 +00:00
fc59e33845 Make errors in option parsing actually _do_ something in interactive mode.
[originally from svn r7039]
2006-12-30 00:26:16 +00:00
7834793e41 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]
2006-12-29 22:43:47 +00:00
eac561147e Update manual copyright to 2006.
[originally from svn r7036]
2006-12-29 16:42:02 +00:00
b0eed2e628 Add NO_HTMLHELP and turn it on by default in Makefile.cyg.
[originally from svn r7033]
2006-12-28 21:39:22 +00:00
39f50b0498 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]
2006-12-28 17:07:21 +00:00
d4dca30089 `make all' targets are usually useful.
[originally from svn r7026]
2006-12-27 16:49:39 +00:00
a977d37e9d Er, further makedist fixes. Helps if you test _before_ checkin.
[originally from svn r7025]
2006-12-27 15:49:16 +00:00
649df16776 And update makedist.sh to put all the new stuff into the source
tarball.

[originally from svn r7024]
2006-12-27 15:36:27 +00:00
1f1eee4246 Fix the Cygwin RCFLAGS in the light of recent changes.
[originally from svn r7023]
2006-12-27 15:33:43 +00:00
197c2ebc12 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]
2006-12-27 15:21:55 +00:00
61b983ae3a 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]
2006-12-27 15:10:59 +00:00
be8076a6e6 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]
2006-12-27 11:05:20 +00:00