aboutsummaryrefslogtreecommitdiff
path: root/latin.c (follow)
Commit message (Collapse)AuthorAge
* 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]
* 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]
* Normalise Unequal (and latin.c) so that solver diagnostics startSimon Tatham2009-12-27
| | | | | | | | their coordinate from 1 rather than 0, for consistency with Solo. (My geek instincts would rather work from 0, but I've generally found that puzzle users sending me email tend to prefer 1.) [originally from svn r8795]
* I've never trusted common variables. Take those bare ints out ofSimon Tatham2009-12-27
| | | | | | | latin.h and put them in latin.c with 'extern' declarations in the header. [originally from svn r8794]
* Refactor latin.c to make it easier to reuse. Instead of clientSimon Tatham2009-12-27
| | | | | | | | | | | programs having to clone the latin_solver() function and insert their own extra deduction routines, they can now just _call_ latin_solver with enough parameters to let it fit its own deductions into their difficulty framework and call a set of provided function pointers to do user deductions. Modified Unequal to work in the new world, of course. [originally from svn r8791]
* Adam D. Lopresto and Phil Bordelon independently point out aSimon Tatham2007-03-01
| | | | | | signedness mismatch. [originally from svn r7350]
* General cleanups patch from James H:Simon Tatham2007-02-28
| | | | | | | | | | | | - 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]
* Dariusz Olszewski's changes to support compiling for PocketPC. ThisSimon Tatham2007-02-26
| | | | | | | | | | | | 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]
* Forgot to shuffle the num[] array! That was probably introducingSimon Tatham2007-02-19
| | | | | | some really subtle probabilistic bias in the generated latin squares. [originally from svn r7302]
* Patch from James H to fix the occasional generation of puzzlesSimon Tatham2007-01-15
| | | | | | harder than requested. [originally from svn r7113]
* Phil Bordelon points out that the Unequal difficulty settingsSimon Tatham2007-01-15
| | | | | | | documentation is a bit odd, and also offers a signedness fix in latin.c. [originally from svn r7112]
* Add James H's new puzzle, `Unequal' (otherwise known as theSimon Tatham2007-01-13
Guardian's `Futoshiki'). [originally from svn r7100]