diff options
| author | Simon Tatham <anakin@pobox.com> | 2010-01-11 21:21:07 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2010-01-11 21:21:07 +0000 |
| commit | 58e0d0bc2da319fb77f1337211ef6ef651f851f0 (patch) | |
| tree | e070345ed1569c66c31cebcc0dd001234e46d544 /latin.h | |
| parent | 771f5446a8c81584bc2d700e0f991eb727b85b9e (diff) | |
| download | puzzles-58e0d0bc2da319fb77f1337211ef6ef651f851f0.zip puzzles-58e0d0bc2da319fb77f1337211ef6ef651f851f0.tar.gz puzzles-58e0d0bc2da319fb77f1337211ef6ef651f851f0.tar.bz2 puzzles-58e0d0bc2da319fb77f1337211ef6ef651f851f0.tar.xz | |
New puzzle from James Harvey: 'Singles', an implementation of
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]
Diffstat (limited to 'latin.h')
| -rw-r--r-- | latin.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -112,6 +112,9 @@ void latin_solver_debug(unsigned char *cube, int o); digit *latin_generate(int o, random_state *rs); +/* The order of the latin rectangle is max(w,h). */ +digit *latin_generate_rect(int w, int h, random_state *rs); + int latin_check(digit *sq, int order); /* !0 => not a latin square */ void latin_debug(digit *sq, int order); |