diff options
| author | Simon Tatham <anakin@pobox.com> | 2009-03-02 19:45:59 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2009-03-02 19:45:59 +0000 |
| commit | 706e27de8d8bd097ac2212578a597b02c9a1b43f (patch) | |
| tree | 6fb95cdd3c4e2d987bbc7d6372c35f1c8fee43eb /puzzles.h | |
| parent | 99ca11bf8b255bb75721f95d900064490ce18356 (diff) | |
| download | puzzles-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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[]; |