aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Retire the 'middle_face' field in 'struct grid', together with theSimon Tatham2011-02-24
| | | | | | | | | | | overly complicated algorithm that uses it to home in on the grid edge closest to a mouse click. That algorithm is being stressed beyond its limit by the new grid type, and it's unnecessary anyway given that no sensibly sized puzzle grid is going to be big enough to make it prohibitively expensive just to do the trivial approach of iterating over all edges and finding the closest of the eligible ones. [originally from svn r9108]
* Patch from Chris Moore to implement an extra grid type, the 'floret'Simon Tatham2011-02-23
| | | | | | pentagonal tiling. [originally from svn r9107]
* Patch from Chris Moore to improve the generality ofSimon Tatham2011-02-23
| | | | | | | grid_nearest_edge(), by having it search harder for a better dot to move to in the first loop. [originally from svn r9106]
* Another UI feature for Group: now you can click between two legendSimon Tatham2011-02-08
| | | | | | | | | | elements to toggle thick lines in the grid. Helps to delineate subgroups and cosets, so it's easier to remember what you can legitimately fill in by associativity. (I should really stop fiddling with this game's UI; it's far too silly.) [originally from svn r9084]
* The printing function in Bridges was unable to cope with more than twoSimon Tatham2011-02-03
| | | | | | | bridges between a pair of islands! Good grief. How did we never spot that before? [originally from svn r9083]
* Fix error highlighting after table rearrangement.Simon Tatham2011-01-09
| | | | [originally from svn r9076]
* Add the ability to reorder the rows and columns in Group. It becomesSimon Tatham2011-01-08
| | | | | | | | much easier to keep track of things if, once you've identified a cyclic subgroup, you can move it into a contiguous correctly ordered block. [originally from svn r9075]
* Introduce a mechanism in Buildscr for optionally building some of theSimon Tatham2011-01-06
| | | | | | | | | | | (more finished) puzzles in 'unfinished', as Java applets only. (The rationale being: puzzles in 'unfinished' can be played locally by people who go to the extra effort of downloading and building the source, but to play them in Java is particularly inconvenient unless I build the Java version myself. I just won't link it from the front page.) [originally from svn r9073]
* Also, it's ugly to blank out pieces of the applet window in black.Simon Tatham2010-11-06
| | | | | | | | | Use the puzzle background colour, like the GTK front end does. (I know that renders the effect of the previous commit invisible, but it's the principle of the thing! :-) [originally from svn r9023]
* In the Java front end, don't try to guess the puzzle rectangle'sSimon Tatham2010-11-06
| | | | | | | | | | | | | | width and height by assuming mirror symmetry within the containing applet area. Instead, use the proper width and height as given back by the C sizing function. (In particular, this fixes a bug where the non-blanked puzzle area appeared too tall by the height of the menu bar, probably as a result of confusing PuzzleApplet.getHeight() with PuzzlePanel.getHeight(). But the mirroring approach was conceptually wrong anyway.) [originally from svn r9022]
* Fixes to r8997: firstly, move the fix out of #ifdef CAIRO so that itSimon Tatham2010-11-06
| | | | | | | | | applies to both drawing mechanisms, and secondly, make sure to paint the spare pieces of window in the _puzzle's_ background colour rather than the (sometimes slightly different) system default. [originally from svn r9021] [r8997 == 26c669a6b2892b97b4a9bc6842f633291951fdbd]
* Liam Clarke points out that the use of the word 'radius' to describeSimon Tatham2010-10-01
| | | | | | | | | the size of the rotating sections in Twiddle is a misnomer, since it's actually measuring something more like the diameter of the section. Replace the word throughout with 'rotating block size' or similar. [originally from svn r9013]
* Memory leak fixes from Jonas Koelker.Simon Tatham2010-09-20
| | | | [originally from svn r9001]
* Jonas Koelker reports that using the version of GTK currently inSimon Tatham2010-09-14
| | | | | | | | | | | | | | Debian sid (2.20.1), there's a redraw problem when the window has a different aspect ratio from the puzzle (due to resizing or maximising): pieces of the window outside the real puzzle rectangle don't get redrawn when exposed (e.g. by the drop-down menus). Introduced code to explicitly redraw the whole exposed area, including the parts that fall outside the pixmap. This makes the problem go away in my hasty test install of sid, and doesn't seem to affect the build on lenny. [originally from svn r8997]
* New puzzle from Jonas Koelker: 'Range', an implementation of theSimon Tatham2010-09-14
| | | | | | | puzzle variously known (depending on which website you look at) as Kurodoko, Kuromasu or 'Where is Black Cells'. [originally from svn r8996]
* Patch from Jonas Koelker to fix a double free in magnetssolver.Simon Tatham2010-07-04
| | | | [originally from svn r8972]
* Some minor fixes to the unfinished Pearl solver:Simon Tatham2010-06-27
| | | | | | | | | - move critical correctness checks out of diagnostic ifdefs (ahem) - move declarations to before conditionally compiled code (we don't build in C99 mode round here) - tidy up an unsightly blank line while I'm here. [originally from svn r8969]
* Some kernels don't like my #! line. Move the -w into a 'useSimon Tatham2010-05-30
| | | | | | warnings;' to make it simpler. [originally from svn r8966]
* Patch from Mark Wooding to add documentation of the newSimon Tatham2010-05-29
| | | | | | | draw_thick_line function, and also add some general thoughts on how to draw puzzles' windows in an antialiasing-friendly way. [originally from svn r8965]
* Patch from Mark Wooding to add antialiasing-safety in repeatedSimon Tatham2010-05-29
| | | | | | | redrawing of inequality signs in Unequal (which are redrawn when they change colour). [originally from svn r8964]
* Patch from Mark Wooding to reorganise Loopy's redraw function to beSimon Tatham2010-05-29
| | | | | | | | properly antialiasing-safe: all redraws are now done by clearing a rectangle of the image, clipping to that rectangle, and redrawing everything in it exactly once. [originally from svn r8963]
* Patch from Mark Wooding to introduce a draw_thick_line() function inSimon Tatham2010-05-29
| | | | | | | | | | | | the drawing API, for use by Loopy. It's optional: drawing.c will construct an acceptable alternative using a filled polygon if the front end doesn't provide it. Net and Netslide previously had static functions called draw_thick_line(), whose claim to the name is less justified and so they've been renamed. [originally from svn r8962]
* Patch from Mark Wooding to (optionally at compile time) use theSimon Tatham2010-05-29
| | | | | | | | Cairo rendering library in place of GDK, which provides pretty antialiased graphics much like we get on MacOS. Inertia and Untangle are perhaps the two games most obviously improved by this. [originally from svn r8961]
* Patch from Mark Wooding to disable GTK's internal double buffering,Simon Tatham2010-05-29
| | | | | | | which I didn't know about, but which is clearly a waste of effort since we keep our own backing pixmap for the puzzle window. [originally from svn r8960]
* Patch from Mark Wooding to use GTK stock items for standard 'OK',Simon Tatham2010-05-29
| | | | | | | | 'Yes' and 'No' buttons, which means they get the standard icons that go on those button types. Also reorders yes/no boxes so that they're the GNOME standard way round. [originally from svn r8959]
* Make mkfiles.pl clean under 'perl -w'. Fixes one minor bug in theSimon Tatham2010-05-29
| | | | | | | | output (a comment from Recipe mistakenly got into the Unix makefile); more importantly, lets mkfiles.pl run in up-to-date Perls (where implicit split to @_ is now obsolete). [originally from svn r8957]
* Patch from Ben Hutchings to fix an error-checking goof: KeenSimon Tatham2010-05-16
| | | | | | | | | | | | division clues were failing to light up as erroneous if the quotient of the numbers in them came out right under rounded-down C integer division (e.g. 2 and 5 would be accepted for a 2/ clue). Apparently I copied the code that invents clues in the generator straight into the solution checker, without remembering that the generator was allowed to do it that way because exact divisibility had been checked elsewhere. [originally from svn r8951]
* A user points out that Signpost doesn't in fact use the numericSimon Tatham2010-05-09
| | | | | | keypad, so it shouldn't have the REQUIRE_NUMPAD flag. [originally from svn r8939]
* Fix a build-breaking bug I introduced to the OS X makefile in r8931.Simon Tatham2010-04-26
| | | | | | | | | (Missed off the explicit -o from the compile lines constructing version.{i386,ppc}.o, causing both to be compiled as version.o and dependent build steps to fail.) [originally from svn r8933] [r8931 == 36cee4e2796c23da15d3276e88416ad1ce035c4a]
* Modification of a patch from Debian: eliminate the endless rebuildsSimon Tatham2010-04-25
| | | | | | | | | | of basically unchanged binaries due to the compulsory rebuild of version.o. version.o now depends normally on version2.def, which is constructed using much the same if statements that version.o used to use, except that it's not overwritten at all if its contents don't need to change. [originally from svn r8931]
* 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]