aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Keyboard control patch for Pegs, from James H.Simon Tatham2009-01-20
| | | | [originally from svn r8419]
* Keyboard control patch for Solo, from James H.Simon Tatham2009-01-19
| | | | [originally from svn r8418]
* Keyboard control patch for Slant, from James H.Simon Tatham2009-01-16
| | | | [originally from svn r8417]
* Keyboard cursor support for Tents, from James H.Simon Tatham2009-01-16
| | | | [originally from svn r8416]
* r8396 introduced midend_tilesize(). Document it.Simon Tatham2009-01-16
| | | | | [originally from svn r8415] [r8396 == 7888d8db677e25d2401914e6aacb1be02301d15f]
* Keyboard cursor support for Rectangles, from James H.Simon Tatham2009-01-15
| | | | [originally from svn r8414]
* Keyboard cursor support in Galaxies, by James H.Simon Tatham2009-01-15
| | | | [originally from svn r8413]
* Keyboard interface for Filling, from James H.Simon Tatham2009-01-14
| | | | [originally from svn r8412]
* Patch from James H to fix some off-by-one errors in Guess's clickSimon Tatham2009-01-12
| | | | | | rectangle checking, preventing array bounds violation. [originally from svn r8409]
* Patch from James H which adds keyboard cursor support to Unequal,Simon Tatham2009-01-12
| | | | | | | | and also updates the docs for both that and the Mines cursor support in r8402. [originally from svn r8408] [r8402 == f20847354cb6335fd349204f16021a72e2956cce]
* Patches from James H to add or improve arrow-key-driven cursors forSimon Tatham2009-01-08
| | | | | | | some puzzles. (Light Up's and Net's are merely polished a bit, but Mines acquires a new one.) [originally from svn r8402]
* Patch from Lambros to make the Normal difficulty level easier, sinceSimon Tatham2009-01-07
| | | | | | | | | people have generally seemed to think Loopy is one of the more difficult puzzles in the collection. There's a new level called Tricky, between Normal and Hard, which is equivalent to the old Normal. [originally from svn r8398]
* Standalone solver for Loopy. Bit half-hearted, since the solverSimon Tatham2009-01-07
| | | | | | | | doesn't have diagnostics embedded and the ASCII formatter can't print non-square puzzles anyway; but it can grade difficulty, which is what I most immediately want it for. [originally from svn r8397]
* Patch from James H to enable a single monolithic binary to be builtSimon Tatham2009-01-06
| | | | | | | | alongside the individual puzzle binaries, on Windows only. (MacOS already has it, of course; Unix would require about as much work again.) [originally from svn r8396]
* Bring the unfinished .R files into line with the current conventions.Simon Tatham2009-01-06
| | | | [originally from svn r8395]
* Don't ignore the return code of fwrite(). (Slight modification of aSimon Tatham2008-12-12
| | | | | | patch from Phil Bordelon.) [originally from svn r8373]
* Add missing call to gtk_selection_clear_targets(), without which theSimon Tatham2008-12-01
| | | | | | | | list of selection targets offered by GTK Puzzles grows an extra copy of each of the three supported text formats every time the user makes a selection! [originally from svn r8365]
* Stand-alone command-line interface to the obfuscate_bitmap()Simon Tatham2008-11-29
| | | | | | | | | function. Useful in conjunction with the new --save option to generate lots of games, extract the aux strings from the game generator, and de-obfuscate them in order to measure statistical properties of their solutions. [originally from svn r8352]
* The other day I found it useful for a (silly) special purpose toSimon Tatham2008-11-29
| | | | | | | | | generate a thousand saved-game files of randomly generated puzzles. On the general principle that if I find it useful someone else conceivably might too, add a --save option to the Unix puzzle binaries, for use with --generate in much the same way as --print. [originally from svn r8351]
* Fix parenthesis problem in Light Up solver. Should fix Debian bugSimon Tatham2008-11-28
| | | | | | #505359. [originally from svn r8342]
* Let's have some more presets in here: 3x3 is much _too_ short andSimon Tatham2008-11-28
| | | | | | easy compared to 6x6. [originally from svn r8340]
* Patch from Lee Dowling to implement mouse control in Sokoban, alongSimon Tatham2008-11-16
| | | | | | pretty much the same lines as Cube and Inertia. [originally from svn r8301]
* Take out some lurking "nullgame" holdovers from unfinished puzzleSimon Tatham2008-11-16
| | | | | | source files, in case they cause trouble. Spotted by Lee Dowling. [originally from svn r8300]
* Patches from Lee Dowling to make Light Up and Net use theSimon Tatham2008-11-16
| | | | | | | | CURSOR_SELECT2 button (to, respectively, toggle a "definitely not light" dot and to rotate in the opposite direction from CURSOR_SELECT). [originally from svn r8299]
* Couple of solving-related mid-end tweaks. Firstly, when we generateSimon Tatham2008-11-16
| | | | | | | | | | | | | | | | | | a game which comes with an aux string, we immediately self-test that string by passing it to solve() and test by assertion that it succeeded. So a bug in a back end which intermittently generates malformed aux strings will be detected as soon as it occurs, instead of only if the user happens to use the Solve operation on a particular game in which it happened. Secondly, Ctrl-S now (undocumentedly) triggers the Solve operation, on the general principle that keyboard shortcuts tend to come in handy, and on the specific principle that if you want to look at lots of solved grids in quick succession (say, when observing their general shape and nature to see if your generation algorithm was good or not) it's handy to have a quick way of getting to them. [originally from svn r8298]
* Check return values from fwrite when saving files.Simon Tatham2008-11-04
| | | | [originally from svn r8278]
* Patch from Lambros to improve the generality of path-generation. InSimon Tatham2008-11-04
| | | | | | | | particular, Great Hexagonal tilings previously had virtually every (if not _actually_ every) hexagon on the inside of the path, and now don't. [originally from svn r8277]
* Patch from Chris Boyle to prevent Solo's inter-block dividing linesSimon Tatham2008-11-02
| | | | | | | from becoming indistinguishable from the intra-block ones at low tile sizes. [originally from svn r8259]
* Apply "103_fix-unequal-digit-h.diff" from the Debian package:Jacob Nevins2008-10-05
| | | | | | | | Unequal 18x18 or above was unplayable due to a clash with the undocumented "H" (hint) key. Resolve the clash by making the hint function only fire when no square is selected. [originally from svn r8200]
* Remove strange punctuation.Jacob Nevins2008-10-04
| | | | [originally from svn r8199]
* Cut-and-paste error which was preventing any drop-down list in theSimon Tatham2008-09-19
| | | | | | custom game configuration code from working in the Java applets. [originally from svn r8192]
* Lambros points out that trying to generate a 3x3 Cairo Easy gridSimon Tatham2008-09-18
| | | | | | | | | | | | | spins forever, but observes that raising the limit to 4x4 across all grid types is not good for the complex grids like great-hexagonal. Introduce per-grid minimum sizes using mad macro trickery. (In fact, for each grid type I've put in a minimum size which _both_ dimensions must equal or exceed, plus another minimum size which _at least one_ must equal or exceed; that permits both 3x4 and 4x3 Cairo while disallowing 3x3.) [originally from svn r8191]
* Patch from Lambros implementing error highlighting in Loopy.Simon Tatham2008-09-18
| | | | [originally from svn r8190]
* Yet another complete rewrite of Slant's loop detection duringSimon Tatham2008-09-17
| | | | | | | | | | | | | | | | | | | | gameplay. Having tried methods based on using the slashes to define a dsf on grid vertices, and also methods based on tracing round the loops using conventional (non-dsf-based) graph theory, it occurred to me the other day that there's a far simpler technique involving connectivity. A loop is precisely that which causes the playing area to become disconnected; so what we do now is to go through and build a dsf describing connectedness of the _area_ of the grid rather than the vertices. That divides the area into its maximal connected components, and then we can trivially identify every edge that's part of a loop by noticing that it separates two nonequivalent pieces of space. The resulting algorithm is half the size of the old one, and it's much easier to be confident of its correctness. (Having said which, there will doubtless turn out to be an embarrassing bug in it, but I haven't found it yet.) [originally from svn r8187]
* Cosmetic: fix mismatch between game_compute_size() and game_redraw()Jacob Nevins2008-09-16
| | | | | | (was causing unwanted "drop-shadow" type effect). [originally from svn r8186]
* Lambros provides this workaround for a compiler warning on hisSimon Tatham2008-09-14
| | | | | | | Ubuntu system. I'm inclined to think the real problem is in his gtk headers, but this is a harmless enough change to avoid hassle. [originally from svn r8181]
* Typo spotted by James H.Simon Tatham2008-09-13
| | | | [originally from svn r8180]
* Oops, left this out of r8178: having defined COMBINED everywhere inSimon Tatham2008-09-13
| | | | | | | the puzzles, we can now remove it from the OS X makefile section. [originally from svn r8179] [r8178 == 43eafe1fdf356c0c1c88936ffa79c83291973b5d]
* Change to the handling of -DCOMBINED in the makefiles. Instead ofSimon Tatham2008-09-13
| | | | | | | | | | | defining it centrally per port, I think it's neater to define it for each puzzle when adding that puzzle to the ALL list - because those front ends which take -DCOMBINED are precisely those which use ALL. In particular, this change opens up the possibility of compiling both individual puzzles _and_ a combined monolith within the same makefile. [originally from svn r8178]
* Patch from James H providing lots more paranoid casting. Also oneSimon Tatham2008-09-13
| | | | | | | | | | actual behaviour change: Untangle now permits dragging with the right mouse button, which has exactly the same effect as it does with the left. (Harmless on desktop platforms, but helpful when "right-click" is achieved by press-and-hold; now the drag takes place even if you hesitate first.) [originally from svn r8177]
* Patch from James H to centralise some generally useful cursor-Simon Tatham2008-09-13
| | | | | | handling functionality into misc.c. [originally from svn r8176]
* Since the lack of this has caused portability issues in the past:Simon Tatham2008-09-13
| | | | | | | add "-ansi -pedantic" to the main Unix makefile, and clean up a few minor problems pointed out thereby. [originally from svn r8175]
* Patch from James H to make new-Loopy port more easily.Simon Tatham2008-09-10
| | | | [originally from svn r8174]
* Having played new-Loopy a bit recently, I've had occasion to think aSimon Tatham2008-09-07
| | | | | | | bit harder about advanced solver techniques. Expand the comment at the top of the file. [originally from svn r8167]
* How did I manage to check this in without actually trying to buildSimon Tatham2008-09-07
| | | | | | | | | on Windows at all?! Fix some departures from the C standard, mostly declaring variables after a statement has already been issued in the same block. MSVC is picky about this where gcc is forgiving, and TBH I'd change the latter given the choice. [originally from svn r8166]
* New Loopy save file, compatible with the new Loopy.Simon Tatham2008-09-06
| | | | [originally from svn r8165]
* Nearly forgot: Lambros definitely deserves a place in the copyrightSimon Tatham2008-09-06
| | | | | | statement! [originally from svn r8164]
* Don't call changed_preset() until after we've initialisedSimon Tatham2008-09-06
| | | | | | fe->copy_menu_item. [originally from svn r8163]
* Completely re-engineered version of Loopy, courtesy of LambrosSimon Tatham2008-09-06
| | | | | | | | | | | Lambrou. Now capable of handling triangular and hexagonal grids as well as square ones, and then a number of semiregular plane tilings and duals of semiregular ones. In fact, most of the solver code supports an _arbitrary_ planar graph (well, provided both the graph and its dual have no self-edges), so it could easily be extended further with only a little more effort. [originally from svn r8162]
* New infrastructure feature. Games are now permitted to beSimon Tatham2008-09-06
| | | | | | | | | | | | | | | | | | | | | | _conditionally_ able to format the current puzzle as text to be sent to the clipboard. For instance, if a game were to support playing on a square grid and on other kinds of grid such as hexagonal, then it might reasonably feel that only the former could be sensibly rendered in ASCII art; so it can now arrange for the "Copy" menu item to be greyed out depending on the game_params. To do this I've introduced a new backend function (can_format_as_text_now()), and renamed the existing static backend field "can_format_as_text" to "can_format_as_text_ever". The latter will cause compile errors for anyone maintaining a third-party front end; if any such person is reading this, I apologise to them for the inconvenience, but I did do it deliberately so that they'd know to update their front end. As yet, no checked-in game actually uses this feature; all current games can still either copy always or copy never. [originally from svn r8161]