657 Commits

Author SHA1 Message Date
ab80d0b7fd Add a new misc.c function needed by Slide's colour setup.
[originally from svn r7552]
2007-05-07 17:50:14 +00:00
7fce4f57c2 Close-to-finished auto-generating implementation of Klotski.
[originally from svn r7547]
2007-05-07 14:49:05 +00:00
6da8849110 I still haven't managed to get the WinCE port building via bob, but
I should at least check in what I've got.

[originally from svn r7542]
2007-05-06 09:54:34 +00:00
61395a5141 Ensure the shuffling process never produces an already-solved grid.
[originally from svn r7446]
2007-04-04 19:12:17 +00:00
f6a7276495 In the Windows frontend, stop tab navigation from activating buttons.
[originally from svn r7436]
2007-03-31 16:00:50 +00:00
9885a86a27 Er, and now do that _without_ introducing further segfaults.
[originally from svn r7409]
2007-03-26 10:24:25 +00:00
0589681d9d Stop failing assertions when we encounter an insoluble puzzle.
[originally from svn r7408]
2007-03-26 10:20:51 +00:00
5fb108db00 Kyle Brazell points out that the completion checker considers a
region valid if it has _a_ dot at its centre of symmetry, even if
that dot isn't actually within the region in question.

[originally from svn r7407]
2007-03-23 18:08:21 +00:00
02cd67ecb6 Disallow clicks between squares.
[originally from svn r7400]
2007-03-16 13:32:43 +00:00
67b37596c2 r7364 failed to expand a malloc to match the larger data being put
in it.

[originally from svn r7387]
[r7364 == 39d299f579da3e91308d63acc78c68ab74666989]
2007-03-11 10:39:44 +00:00
f7e755628b Gary Wong observes that solo's decode_params() is overenthusiastic
about eating the letter `d' (for `diagonal') when it appears in a
symmtery description: it should only be used after `m', because
mirror symmetry is the only type that can be diagonal. This was
causing parsing of the parameter description `3x3adu' to produce the
wrong answer: the d would be swallowed, then the u ignored for being
incomprehensible, and you'd get default Trivial difficulty.

[originally from svn r7386]
2007-03-11 10:12:45 +00:00
4212ef4bd2 Gary Wong points out that solosolver's verbose output is
inconsistent in whether it numbers rows and columns from zero or
from one. Standardise on one.

[originally from svn r7385]
2007-03-11 10:04:00 +00:00
d0a824540b Since we've changed the semantics of the `expand' argument to midend_size(),
change the name. Also document the new semantics.

[originally from svn r7369]
2007-03-03 23:43:22 +00:00
8b21ddc396 Patch from Ben Hutchings to allow user-initiated tilesize changes to persist
across changes in game parameters (e.g., changing difficulty without changing
size). This also has the effect of preserving the user-selected tilesize if the
grid size is changed. (From Debian bug#379452.)

[originally from svn r7368]
2007-03-03 23:17:35 +00:00
c1b0c1d091 Ben Hutchings' patch to allow Gtk windows to be shrunk as well as grown
(from Debian bug#379452).
Tested on Gtk 2. I've been unable to find a Gtk+-1.2 installation on which
Puzzles compiles, so not tested there.

[originally from svn r7367]
2007-03-03 22:39:17 +00:00
d916cd7ff9 Refactoring patch from Ben Hutchings: move all the Gtk resize code into one
place. (From Debian bug#379452)

[originally from svn r7366]
2007-03-03 22:05:05 +00:00
39d299f579 Patch from James H to provide resizability on Windows.
[originally from svn r7364]
2007-03-03 17:36:44 +00:00
8d710851de Minor cleanups (mostly \ns in diagnostic printfs) from James H.
[originally from svn r7363]
2007-03-03 17:25:13 +00:00
587d105799 My favourite kind of patch, from James H: one which decreases the
amount of code. James has ripped out the solver's version of
check_complete(), in favour of using the one I wrote for the
game-playing UI. My one checks connectedness, which means that the
solver will now not believe non-solutions to puzzles where
connectedness becomes a difficult issue. Examples of game IDs which
are now solved correctly but were previously not are 5x3:ubb and
7x7:ajfzmfqgtdzgt.

[originally from svn r7362]
2007-03-03 17:15:25 +00:00
6a361ce734 About time I got round to documenting the new
REQUIRE_{RBUTTON,NUMPAD} flags.

[originally from svn r7356]
2007-03-03 09:41:51 +00:00
6713d21cd1 Fix problems with arrow UI with non-square grid.
[originally from svn r7355]
2007-03-02 20:14:15 +00:00
3584fc5a1b Silliness! Here's a somewhat hacky patch which builds an additional
binary from the Galaxies source file. The function of the new
`galaxiespicture' is to take a .xbm bitmap on standard input and
convert it into a Galaxies game ID using both black and white dots,
such that when solved the puzzle displays the input bitmap.

In the process of this I've implemented a post-processing pass after
the main game generation, to prevent clusters of adjacent
singletons. James H already solved that problem for unconstrained
game generation, but for some reason it came back when I did this.
However, the post-processing pass is still turned off for normal
usage, on the basis that (a) if it ain't broke don't fix it, and (b)
it's rather slow and best avoided if not necessary.

[originally from svn r7354]
2007-03-01 18:57:36 +00:00
2fc204c1e2 Amend README so that it makes reasonable sense no matter whether
you've got your source code from a tarball (with makefiles) or from
svn (without makefiles). While I'm here, mention Makefile.wce.

[originally from svn r7352]
2007-03-01 13:29:53 +00:00
db743e54e8 Cleanup patch from James H: disable the `s' key, which was only in
there by accident.

[originally from svn r7351]
2007-03-01 07:41:11 +00:00
f5dedef552 Adam D. Lopresto and Phil Bordelon independently point out a
signedness mismatch.

[originally from svn r7350]
2007-03-01 07:39:05 +00:00
cf0b0b747b Bound edge thicknesses below so that they're always thicker than the
grid lines.

[originally from svn r7349]
2007-03-01 07:32:35 +00:00
682ea218de Fix some border drawing issues.
[originally from svn r7347]
2007-02-28 22:22:30 +00:00
3940c22d49 MinGW windres doesn't like an empty resource file, so invent a resource to
keep it happy. (Hopefully this hack will be temporary.)

[originally from svn r7346]
2007-02-28 21:49:48 +00:00
9287d95d08 General cleanups patch from James H:
- missing static in filling.c
 - better robustness in execute_move() in filling.c
 - remove side effects in assert statements
 - remove rogue diagnostic in galaxies.c
 - remove // comment in map.c
 - add more stylus-friendly UI to Pattern
 - bias Unequal towards generating inequality clues rather than numeric

[originally from svn r7344]
2007-02-28 21:19:15 +00:00
de5ccc9352 Gary Wong points out a couple of minor errors in the setting of
`used_solve'.

[originally from svn r7343]
2007-02-28 21:02:31 +00:00
e663595a5c Provide my old drag-based interface to Net as an ifdef-enabled
option, and turn it on by default on stylus-based platforms (i.e.
currently PocketPC).

[originally from svn r7341]
2007-02-27 21:03:06 +00:00
e735704514 Another thing to watch out for when adding new puzzles.
[originally from svn r7340]
2007-02-27 20:52:03 +00:00
1dc3ce6d90 Create a blank .rc file to be used in the absence of icons/foo.rc.
This means that puzzles.rc2 is always included in all Windows and
PocketPC builds, which in turn means that I should be able to start
filling it full of VERSIONINFO and have that reliably included as
well.

[originally from svn r7339]
2007-02-27 20:49:40 +00:00
650929a57f This game requires the numpad.
[originally from svn r7338]
2007-02-27 20:46:15 +00:00
15f70f527a Dariusz Olszewski's changes to support compiling for PocketPC. This
is mostly done with ifdefs in windows.c; so mkfiles.pl generates a
new makefile (Makefile.wce) and Recipe enables it, but it's hardly
any different from Makefile.vc apart from a few definitions at the
top of the files.

Currently the PocketPC build is not enabled in the build script, but
with any luck I'll be able to do so reasonably soon.

[originally from svn r7337]
2007-02-26 20:35:47 +00:00
3bfe0fb32e 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]
2007-02-25 23:30:14 +00:00
ca96ca1ac9 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]
2007-02-25 15:57:35 +00:00
bc64fc8481 Galaxies doesn't print in colour.
[originally from svn r7334]
2007-02-25 15:50:24 +00:00
a7408203eb Don't create an undo-chain entry for a move with no effect.
[originally from svn r7333]
2007-02-25 13:00:58 +00:00
b9fd636928 Fix a UI glitch where dragging an existing arrow could change what it
referred to.

[originally from svn r7331]
2007-02-25 12:54:46 +00:00
19824f58c9 Tweak the cropping of the Filling icon very slightly.
[originally from svn r7330]
2007-02-25 12:18:20 +00:00
df1fcbfde1 Update the checklist (yet again) to try to prevent a recurrence of
the error I corrected in r7328.

[originally from svn r7329]
[r7328 == b1679913f68675806f88f4682423c99f14a47b02]
2007-02-25 12:12:35 +00:00
b1679913f6 Forgot to enable the Windows icon.
[originally from svn r7328]
2007-02-25 12:11:47 +00:00
1059e13650 More updates to the new-puzzle checklist.
[originally from svn r7327]
2007-02-25 12:04:42 +00:00
df31d4f419 New puzzle: `Filling', a Fillomino implementation by Jonas Koelker.
[originally from svn r7326]
2007-02-25 11:37:05 +00:00
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