aboutsummaryrefslogtreecommitdiff
path: root/puzzles.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2009-03-02 19:45:59 +0000
committerSimon Tatham <anakin@pobox.com>2009-03-02 19:45:59 +0000
commit706e27de8d8bd097ac2212578a597b02c9a1b43f (patch)
tree6fb95cdd3c4e2d987bbc7d6372c35f1c8fee43eb /puzzles.h
parent99ca11bf8b255bb75721f95d900064490ce18356 (diff)
downloadpuzzles-706e27de8d8bd097ac2212578a597b02c9a1b43f.zip
puzzles-706e27de8d8bd097ac2212578a597b02c9a1b43f.tar.gz
puzzles-706e27de8d8bd097ac2212578a597b02c9a1b43f.tar.bz2
puzzles-706e27de8d8bd097ac2212578a597b02c9a1b43f.tar.xz
Patch from James H to abstract out of Dominosa the code which
randomly generates a tiling of a rectangle with dominoes, since he wants to reuse that function in another puzzle. [originally from svn r8488]
Diffstat (limited to 'puzzles.h')
-rw-r--r--puzzles.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/puzzles.h b/puzzles.h
index 0e0cf97..69476ae 100644
--- a/puzzles.h
+++ b/puzzles.h
@@ -339,6 +339,12 @@ void dsf_merge(int *dsf, int v1, int v2);
void dsf_init(int *dsf, int len);
/*
+ * laydomino.c
+ */
+int *domino_layout(int w, int h, random_state *rs);
+void domino_layout_prealloc(int w, int h, random_state *rs,
+ int *grid, int *grid2, int *list);
+/*
* version.c
*/
extern char ver[];