aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-04-25 14:37:33 +0000
committerSimon Tatham <anakin@pobox.com>2005-04-25 14:37:33 +0000
commit80129693bb1b6370e1d7420a5aa13e8755f1f3cf (patch)
tree6941880ee8efbcd4ef00ca78a658cb58cccb1bb4
parent0fffbf32dbe92d370df36745a165f4065629e5fb (diff)
downloadpuzzles-80129693bb1b6370e1d7420a5aa13e8755f1f3cf.zip
puzzles-80129693bb1b6370e1d7420a5aa13e8755f1f3cf.tar.gz
puzzles-80129693bb1b6370e1d7420a5aa13e8755f1f3cf.tar.bz2
puzzles-80129693bb1b6370e1d7420a5aa13e8755f1f3cf.tar.xz
Remove some legacy debugging code which was breaking the MinGW
build, and which is redundant given the new standalone solver functionality. [originally from svn r5672]
-rw-r--r--solo.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/solo.c b/solo.c
index 480bb2b..a023eff 100644
--- a/solo.c
+++ b/solo.c
@@ -966,44 +966,6 @@ static char *new_game_seed(game_params *params, random_state *rs)
assert(ret == 1);
assert(check_valid(c, r, grid));
-#ifdef DEBUG
- memcpy(grid,
- "\x0\x1\x0\x0\x6\x0\x0\x0\x0"
- "\x5\x0\x0\x7\x0\x4\x0\x2\x0"
- "\x0\x0\x6\x1\x0\x0\x0\x0\x0"
- "\x8\x9\x7\x0\x0\x0\x0\x0\x0"
- "\x0\x0\x3\x0\x4\x0\x9\x0\x0"
- "\x0\x0\x0\x0\x0\x0\x8\x7\x6"
- "\x0\x0\x0\x0\x0\x9\x1\x0\x0"
- "\x0\x3\x0\x6\x0\x5\x0\x0\x7"
- "\x0\x0\x0\x0\x8\x0\x0\x5\x0"
- , area);
-
- {
- int y, x;
- for (y = 0; y < cr; y++) {
- for (x = 0; x < cr; x++) {
- printf("%2.0d", grid[y*cr+x]);
- }
- printf("\n");
- }
- printf("\n");
- }
-
- nsolve(c, r, grid);
-
- {
- int y, x;
- for (y = 0; y < cr; y++) {
- for (x = 0; x < cr; x++) {
- printf("%2.0d", grid[y*cr+x]);
- }
- printf("\n");
- }
- printf("\n");
- }
-#endif
-
/*
* Now we have a solved grid, start removing things from it
* while preserving solubility.
@@ -1073,19 +1035,6 @@ static char *new_game_seed(game_params *params, random_state *rs)
sfree(grid2);
sfree(locs);
-#ifdef DEBUG
- {
- int y, x;
- for (y = 0; y < cr; y++) {
- for (x = 0; x < cr; x++) {
- printf("%2.0d", grid[y*cr+x]);
- }
- printf("\n");
- }
- printf("\n");
- }
-#endif
-
/*
* Now we have the grid as it will be presented to the user.
* Encode it in a game seed.