aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Patch idea from Debian, but modified considerably in implementation:Simon Tatham2010-04-25
| | | | | | | | | | | | introduce a new colour in Slant (COL_FILLEDSQUARE) which is used for the background of any grid square that has a diagonal line in it. This makes it easier to spot the one square on a giant board you forgot to fill in, but on the other hand I found it to look very strange and disconcerting. So I've set the colour to be identical to COL_BACKGROUND by default, and users who like the idea can enable it by environment variable or by local patch. [originally from svn r8930]
* Patch from Debian, to bring the use of the X selection/clipboard inSimon Tatham2010-04-25
| | | | | | | | | line with freedesktop.org. (This is relatively simple for Puzzles, since it only writes to the clipboard and never reads it, so the question of which selection to use when is most easily dealt with by always writing to both.) [originally from svn r8929]
* Wording tweaks inspired by (but not the same as) some in a DebianSimon Tatham2010-04-18
| | | | | | downstream patch. [originally from svn r8924]
* Patch from Ben Hutchings: explicitly initialise something which someSimon Tatham2010-04-18
| | | | | | gccs complained about. [originally from svn r8923]
* Fix incorrect uses of ctype.h (passing it uncast chars, or otherSimon Tatham2010-04-17
| | | | | | things potentially not in the range 0..255). [originally from svn r8922]
* Fix from James H for an assertion failure during SignpostSimon Tatham2010-04-17
| | | | | | generation. To reproduce, try 'signpost --generate 1 7x7#12345-162'. [originally from svn r8921]
* Add '-v' option to patternsolver, to make it show its working.Simon Tatham2010-04-02
| | | | [originally from svn r8914]
* Dylan O'Donnell reports that Signpost hangs on trying to generate aSimon Tatham2010-04-02
| | | | | | 2x2 puzzle. Rule it out in validate_params(). [originally from svn r8913]
* Chris Boyle reports an off-by-two error ('a Qui-Gon Jinx' :-) inSimon Tatham2010-03-21
| | | | | | | difficulty selection in Unequal's solver. I suspect I missed this when I refactored latin.c and its callers. [originally from svn r8906]
* Error highlighting bug in Bridges: when counting the number of extraSimon Tatham2010-03-21
| | | | | | | | | | | | bridges that could go to an island, the game was not correctly accounting for existing bridges in all circumstances. (E.g. in 7x7m2:2a6a2a1g4a6c4i1a1h23c2b, connect the top right 1 to the 2 left of it, and the 6 left of that correctly lights up red. But now connect the 6 to the 6 below it, and it wrongly unlights again.) [originally from svn r8905]
* Another w/h transposition typo.Simon Tatham2010-02-24
| | | | [originally from svn r8887]
* Typo affecting gameplay on grids wider than they are tall. (ClickingSimon Tatham2010-02-24
| | | | | | in columns with x > h was being erroneously rejected.) [originally from svn r8886]
* Fixes from James H to the numbering of squares, in particular:Simon Tatham2010-02-22
| | | | | | | | | - sometimes two regions would get the same letter - immutable numbers could sometimes be modified - immutable numbers are now not flagged as errors when they clash (same as Solo's policy) [originally from svn r8882]
* Fix build failure on MacOS by initialising a variable which wasSimon Tatham2010-02-18
| | | | | | | | reported as potentially-unused. (In fact, as far as I can tell, it's only ever uninitialised in assertion-failing code paths, so not a real bug.) [originally from svn r8873]
* A proper fix from James H for the negative number issue: theSimon Tatham2010-02-17
| | | | | | | assertion I crudely commented out has now been replaced with code that clearly shows what you did wrong in the failing situation. [originally from svn r8872]
* Typo fix (from Debian).Jacob Nevins2010-02-17
| | | | [originally from svn r8869]
* Capitalisation glitch.Simon Tatham2010-02-16
| | | | [originally from svn r8868]
* 'Fix' an assertion failure during play: accidentally connecting aSimon Tatham2010-02-16
| | | | | | | | | | | | long chain to a square numbered so low that the start of the chain would have to go into negative numbers should not crash the game, particularly when it happens as a momentary in-passing illustration. I've fixed it for the moment just by removing the assertion. There's probably a better fix which causes something less strange to happen to the display as a result. [originally from svn r8867]
* Docs and comments fixes from James H.Simon Tatham2010-02-16
| | | | [originally from svn r8866]
* Updates to the new-puzzle checklist, since the world has moved on.Simon Tatham2010-02-15
| | | | [originally from svn r8865]
* New puzzle! Setting what might be a record for how long we've sat onSimon Tatham2010-02-15
| | | | | | | a puzzle before it was ready to commit, here is 'Signpost': a clone of janko.at's "Arrow Path", by James Harvey. [originally from svn r8861]
* Patch inspired by one from James H: remove spurious references toSimon Tatham2010-01-19
| | | | | | | | $mw (it should only ever have been used in the Cygwin makefile), and move the libraries to the end of the link line in the Unix makefile for better portability. [originally from svn r8853]
* Fix from James H: the shared code between drawing and printingSimon Tatham2010-01-18
| | | | | | | should use state->adjacent rather than ds->adjacent, because the latter won't be initialised in printing mode. [originally from svn r8852]
* Fix from James H: in printing mode, the shared code between drawingSimon Tatham2010-01-18
| | | | | | | and printing must avoid referring to stuff in the game_drawstate, since the game_drawstate isn't a real one. [originally from svn r8851]
* Memory leak fix from James H.Simon Tatham2010-01-18
| | | | [originally from svn r8850]
* Patch from James H to fix a bug in which ambiguous puzzles wouldSimon Tatham2010-01-17
| | | | | | occasionally be generated, e.g. by 8x8de#417341658689473 . [originally from svn r8845]
* Typo/formatting fixes for Magnets documentation.Jacob Nevins2010-01-16
| | | | [originally from svn r8844]
* Highlight the sides as well as the top of a tower when it'sSimon Tatham2010-01-16
| | | | | | | | | selected. I think this is a more or less aesthetically neutral change for the actual selection, but the selection code is reused to draw the victory flash and that's greatly improved by not having the tower sides remain unflashed. [originally from svn r8843]
* Don't use payload strings directly as the format for printf.Simon Tatham2010-01-13
| | | | [originally from svn r8839]
* Placate optimiser.Simon Tatham2010-01-13
| | | | [originally from svn r8838]
* New puzzle from James H: 'Magnets'.Simon Tatham2010-01-13
| | | | [originally from svn r8836]
* Couple of small changes to Singles from James H which missed my mainSimon Tatham2010-01-12
| | | | | | | commit: tweak the grid generation a bit, and fix the use of the Solve function on a grid containing errors. [originally from svn r8835]
* Patch from James H: make the Windows debugging output conditional onSimon Tatham2010-01-12
| | | | | | an enabling environment variable. [originally from svn r8834]
* Add a couple more checks to the 3d collision detection, withoutSimon Tatham2010-01-12
| | | | | | | which a click miles above the invisible RH surface of a tower would sometimes select that tower. [originally from svn r8833]
* Corrections to Singles documentation, plus index terms.Jacob Nevins2010-01-11
| | | | [originally from svn r8832]
* Misspelled keyword.Simon Tatham2010-01-11
| | | | [originally from svn r8830]
* New puzzle from James Harvey: 'Singles', an implementation ofSimon Tatham2010-01-11
| | | | | | | | Hitori. One infrastructure change in the process: latin.c has acquired a utility function to generate a latin rectangle rather than a full square. [originally from svn r8828]
* Retire the YTRANS and YUNTRANS macros in latin.[ch]. They wereSimon Tatham2010-01-11
| | | | | | | | | introduced to mimic similar macros in solo.c, in case Solo ever moved over to being based on the latin.c solver framework; but even Solo has long since lost those macros, so latin.c has no need to keep them. [originally from svn r8827]
* The 3-D graphics in Towers need a corresponding change on the inputSimon Tatham2010-01-11
| | | | | | | | | | side: instead of locating a mouse click in whichever base grid square contained the click location, we should check to see if a tower protrudes on to that location from a neighbouring square. That way, a click should reliably activate the tower that was actually drawn under the mouse pointer. [originally from svn r8826]
* Oops! Remove evidence of blatant clone-and-hack from Keen. :-)Simon Tatham2010-01-11
| | | | [originally from svn r8825]
* Oops. Uncomment the difficulty exceptions! (Also add anotherSimon Tatham2010-01-09
| | | | | | constraint in validate_params.) [originally from svn r8824]
* New year, new puzzle.Jacob Nevins2010-01-08
| | | | [originally from svn r8823]
* Fix formatting.Jacob Nevins2010-01-07
| | | | [originally from svn r8822]
* Crop the Towers icon more sensibly (i.e. at all).Simon Tatham2010-01-07
| | | | [originally from svn r8821]
* Upgrade the graphics in Towers to include a thematically appropriateSimon Tatham2010-01-07
| | | | | | | | | 3D effect. (I only committed it without so that I could preserve a record of how the code looked before I added it.) The 3D effect can be disabled by setting TOWERS_2D in the environment, should anybody seriously dislike it. [originally from svn r8817]
* New puzzle, again using the revised latin.c: 'Towers', a clone of aSimon Tatham2010-01-07
| | | | | | | latin-square puzzle which I've seen described by several names but the most common is 'Skyscrapers'. [originally from svn r8816]
* Memory leak fix from James H.Simon Tatham2010-01-07
| | | | [originally from svn r8815]
* Proof that check_errors() is sufficient.Simon Tatham2010-01-05
| | | | [originally from svn r8813]
* Refer to group elements by letters instead of numbers, in keepingSimon Tatham2010-01-05
| | | | | | | with usual abstract group notation. In puzzles with a clear identity, it's called e. [originally from svn r8812]
* Add a facility in the latin.c solver diagnostics to allow a puzzleSimon Tatham2010-01-05
| | | | | | to call the digit values by custom names. [originally from svn r8811]