From 58e0d0bc2da319fb77f1337211ef6ef651f851f0 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 11 Jan 2010 21:21:07 +0000 Subject: 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] --- latin.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'latin.h') diff --git a/latin.h b/latin.h index 5607afe..4b09f16 100644 --- 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); +/* 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); -- cgit v1.1