chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Forbid undo of new-game if it would change the params.
[sgt-puzzles.git]
/
latin.h
diff --git
a/latin.h
b/latin.h
index 5607afe8fd8c59c18fb65902d6ec9a7094a1a75e..4b09f16ce16051e3c28a25979e9842f87e300019 100644
(file)
--- a/
latin.h
+++ b/
latin.h
@@
-112,6
+112,9
@@
void latin_solver_debug(unsigned char *cube, int o);
digit *latin_generate(int o, random_state *rs);
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);
int latin_check(digit *sq, int order); /* !0 => not a latin square */
void latin_debug(digit *sq, int order);