Commit Graph

  • 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. Jacob Nevins 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) Jacob Nevins 2007-03-03 22:05:05 +00:00
  • 39d299f579 Patch from James H to provide resizability on Windows. Simon Tatham 2007-03-03 17:36:44 +00:00
  • 8d710851de Minor cleanups (mostly \ns in diagnostic printfs) from James H. Simon Tatham 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. Simon Tatham 2007-03-03 17:15:25 +00:00
  • 6a361ce734 About time I got round to documenting the new REQUIRE_{RBUTTON,NUMPAD} flags. Simon Tatham 2007-03-03 09:41:51 +00:00
  • 6713d21cd1 Fix problems with arrow UI with non-square grid. Jacob Nevins 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. Simon Tatham 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. Simon Tatham 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. Simon Tatham 2007-03-01 07:41:11 +00:00
  • f5dedef552 Adam D. Lopresto and Phil Bordelon independently point out a signedness mismatch. Simon Tatham 2007-03-01 07:39:05 +00:00
  • cf0b0b747b Bound edge thicknesses below so that they're always thicker than the grid lines. Simon Tatham 2007-03-01 07:32:35 +00:00
  • 682ea218de Fix some border drawing issues. Jacob Nevins 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.) Jacob Nevins 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 Simon Tatham 2007-02-28 21:19:15 +00:00
  • de5ccc9352 Gary Wong points out a couple of minor errors in the setting of `used_solve'. Simon Tatham 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). Simon Tatham 2007-02-27 21:03:06 +00:00
  • e735704514 Another thing to watch out for when adding new puzzles. Simon Tatham 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. Simon Tatham 2007-02-27 20:49:40 +00:00
  • 650929a57f This game requires the numpad. Simon Tatham 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. Simon Tatham 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. Simon Tatham 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. Simon Tatham 2007-02-25 15:57:35 +00:00
  • bc64fc8481 Galaxies doesn't print in colour. Simon Tatham 2007-02-25 15:50:24 +00:00
  • a7408203eb Don't create an undo-chain entry for a move with no effect. Simon Tatham 2007-02-25 13:00:58 +00:00
  • b9fd636928 Fix a UI glitch where dragging an existing arrow could change what it referred to. Jacob Nevins 2007-02-25 12:54:46 +00:00
  • 19824f58c9 Tweak the cropping of the Filling icon very slightly. Simon Tatham 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. Simon Tatham 2007-02-25 12:12:35 +00:00
  • b1679913f6 Forgot to enable the Windows icon. Simon Tatham 2007-02-25 12:11:47 +00:00
  • 1059e13650 More updates to the new-puzzle checklist. Simon Tatham 2007-02-25 12:04:42 +00:00
  • df31d4f419 New puzzle: `Filling', a Fillomino implementation by Jonas Koelker. Simon Tatham 2007-02-25 11:37:05 +00:00
  • 8b1b6bc9a3 Oops. Having built the installer, we need a redirect for it in .htaccess. Simon Tatham 2007-02-25 10:10:51 +00:00
  • b05cb1eaf3 Build an installer for Puzzles. Simon Tatham 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. Simon Tatham 2007-02-24 17:34:21 +00:00
  • 027bf40f67 Phil Bordelon points out that when I renamed `Recursive' I missed a bit. Simon Tatham 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). Jacob Nevins 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. Simon Tatham 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. Simon Tatham 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. Simon Tatham 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. Simon Tatham 2007-02-22 18:09:51 +00:00
  • 86ee29ac48 James H forgot to credit himself for Galaxies! Simon Tatham 2007-02-22 10:06:59 +00:00
  • da185cd658 Update the new-puzzle checklist for the post-bob world. Simon Tatham 2007-02-22 09:54:52 +00:00
  • 58995720c4 Missing uses of \q{}. Simon Tatham 2007-02-22 09:50:33 +00:00
  • e137ad8b1a Add James Harvey's excellent new puzzle, `Galaxies'. Simon Tatham 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. Simon Tatham 2007-02-19 19:38:00 +00:00
  • d68ba4b21e Replicate r7285 from PuTTY: make keyboard input work in HTML Help. Jacob Nevins 2007-02-13 23:01:50 +00:00
  • da4606ddd5 Now we have the new `module' command, use it. Simon Tatham 2007-02-05 12:41:21 +00:00
  • ac72b6e148 Reinstate the icons in the Windows binaries. Simon Tatham 2007-02-04 14:35:23 +00:00
  • 19a298baf4 Forgot to tag the Mac and Windows binaries with the revision number. Simon Tatham 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 :-) Simon Tatham 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. Simon Tatham 2007-02-04 11:44:10 +00:00
  • 215cf19577 Misdirected cross-reference spotted by Jonas Koelker. Simon Tatham 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. Simon Tatham 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.) Simon Tatham 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. Simon Tatham 2007-01-15 20:21:57 +00:00
  • 472deca37c Patch from James H to fix the occasional generation of puzzles harder than requested. Simon Tatham 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. Simon Tatham 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. Simon Tatham 2007-01-14 10:13:29 +00:00
  • f43c5c9280 Formatting tweaks / index terms in Unequal docs. Jacob Nevins 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. Simon Tatham 2007-01-13 15:17:55 +00:00
  • 5732aa6c6f Icon for Unequal. Simon Tatham 2007-01-13 14:59:15 +00:00
  • 2f8dba9257 Add James H's new puzzle, Unequal' (otherwise known as the Guardian's Futoshiki'). Simon Tatham 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. Simon Tatham 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. Simon Tatham 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. Jacob Nevins 2007-01-04 19:24:43 +00:00
  • 14ed4e9b1e Phil Bordelon's patch yesterday should have initialised the GError to NULL. Simon Tatham 2007-01-03 09:51:42 +00:00
  • 7848918bac Phil Bordelon points out that my invocation of gdk_pixbuf_save() isn't quite right. Simon Tatham 2007-01-02 19:45:19 +00:00
  • 21127b78eb It's a new year. Jacob Nevins 2007-01-01 21:19:14 +00:00
  • 7c736c4c1f Document the new --game and --load options on Unix. Jacob Nevins 2006-12-30 00:50:29 +00:00
  • fc59e33845 Make errors in option parsing actually _do_ something in interactive mode. Jacob Nevins 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). Jacob Nevins 2006-12-29 22:43:47 +00:00
  • eac561147e Update manual copyright to 2006. Jacob Nevins 2006-12-29 16:42:02 +00:00
  • b0eed2e628 Add NO_HTMLHELP and turn it on by default in Makefile.cyg. Jacob Nevins 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. Simon Tatham 2006-12-28 17:07:21 +00:00
  • d4dca30089 `make all' targets are usually useful. Simon Tatham 2006-12-27 16:49:39 +00:00
  • a977d37e9d Er, further makedist fixes. Helps if you test _before_ checkin. Simon Tatham 2006-12-27 15:49:16 +00:00
  • 649df16776 And update makedist.sh to put all the new stuff into the source tarball. Simon Tatham 2006-12-27 15:36:27 +00:00
  • 1f1eee4246 Fix the Cygwin RCFLAGS in the light of recent changes. Simon Tatham 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. Simon Tatham 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. Simon Tatham 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. Simon Tatham 2006-12-27 11:05:20 +00:00
  • d07eb2ea3a Improve the icon images by cropping selected pieces out of most of the main screenshots. (A few, like Map, were perfect already.) Simon Tatham 2006-12-27 10:26:13 +00:00
  • 90e6864579 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. Simon Tatham 2006-12-26 22:00:11 +00:00
  • d55ad9fc42 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. Simon Tatham 2006-12-26 16:47:28 +00:00
  • ff7d2559ee Minor const fix. Simon Tatham 2006-12-24 16:30:45 +00:00
  • 7b1f7d3e01 HTML Help support for Puzzles, with the same kind of automatic fallback behaviour as PuTTY's support. Simon Tatham 2006-12-24 15:56:47 +00:00
  • d1cfcffa05 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. Simon Tatham 2006-12-23 08:44:51 +00:00
  • e08948a7ea 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. Simon Tatham 2006-12-21 17:11:56 +00:00
  • 5666496fc0 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. Simon Tatham 2006-11-24 18:24:01 +00:00
  • 3b58225f99 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. Simon Tatham 2006-11-23 13:17:31 +00:00
  • 78c709e239 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. Simon Tatham 2006-11-20 10:20:46 +00:00
  • 13a9cb0bea 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. Simon Tatham 2006-11-01 13:25:25 +00:00
  • 9b31ed25d8 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. Simon Tatham 2006-11-01 11:31:20 +00:00
  • fe4fd0ebc5 Minimal (i.e., lame) update to Loopy documentation to match reality -- it's been wrong since r6299. Jacob Nevins 2006-10-29 17:40:45 +00:00
  • b3364419da 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). Simon Tatham 2006-10-29 09:41:02 +00:00
  • b7356cd209 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... Simon Tatham 2006-10-29 09:34:09 +00:00
  • b9547673c6 Mike Pinna has done some major reworking of the Loopy solver, giving rise to a new Hard difficulty level. Simon Tatham 2006-10-28 15:38:53 +00:00
  • 04e3e09b87 Couple of minor errors. Simon Tatham 2006-10-17 08:25:40 +00:00
  • 1129ba83f9 Forgot to put the new .R files into makedist.sh. Oops! Simon Tatham 2006-09-06 08:23:15 +00:00
  • 9955c5ffc3 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. Simon Tatham 2006-08-25 07:10:59 +00:00