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]
This commit is contained in:
Simon Tatham
2009-03-02 19:45:59 +00:00
parent 99ca11bf8b
commit 706e27de8d
4 changed files with 309 additions and 241 deletions

View File

@ -338,6 +338,12 @@ void edsf_merge(int *dsf, int v1, int v2, int inverse);
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
*/