mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Oops; left some rogue diagnostics in.
[originally from svn r6291]
This commit is contained in:
10
inertia.c
10
inertia.c
@ -1160,7 +1160,7 @@ static char *solve_game(game_state *state, game_state *currstate,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef TSP_DIAGNOSTICS
|
#ifdef TSP_DIAGNOSTICS
|
||||||
printf("before reduction, moves are ");
|
printf("before reduction, moves are ");
|
||||||
x = nodes[circuit[0]] / DP1 % w;
|
x = nodes[circuit[0]] / DP1 % w;
|
||||||
y = nodes[circuit[0]] / DP1 / w;
|
y = nodes[circuit[0]] / DP1 / w;
|
||||||
@ -1246,7 +1246,7 @@ static char *solve_game(game_state *state, game_state *currstate,
|
|||||||
p = min(i, j);
|
p = min(i, j);
|
||||||
q = max(i, j);
|
q = max(i, j);
|
||||||
|
|
||||||
#ifndef TSP_DIAGNOSTICS
|
#ifdef TSP_DIAGNOSTICS
|
||||||
printf("optimising section from %d - %d\n", p, q);
|
printf("optimising section from %d - %d\n", p, q);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1280,7 +1280,7 @@ static char *solve_game(game_state *state, game_state *currstate,
|
|||||||
if (dir > 0)
|
if (dir > 0)
|
||||||
i = q; /* resume loop from the right place */
|
i = q; /* resume loop from the right place */
|
||||||
|
|
||||||
#ifndef TSP_DIAGNOSTICS
|
#ifdef TSP_DIAGNOSTICS
|
||||||
printf("new section runs from %d - %d\n", p, q);
|
printf("new section runs from %d - %d\n", p, q);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1316,7 +1316,7 @@ static char *solve_game(game_state *state, game_state *currstate,
|
|||||||
|
|
||||||
j = i;
|
j = i;
|
||||||
|
|
||||||
#ifndef TSP_DIAGNOSTICS
|
#ifdef TSP_DIAGNOSTICS
|
||||||
printf("during reduction, circuit is");
|
printf("during reduction, circuit is");
|
||||||
for (k = 0; k < circuitlen; k++) {
|
for (k = 0; k < circuitlen; k++) {
|
||||||
int nc = nodes[circuit[k]];
|
int nc = nodes[circuit[k]];
|
||||||
@ -1345,7 +1345,7 @@ static char *solve_game(game_state *state, game_state *currstate,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef TSP_DIAGNOSTICS
|
#ifdef TSP_DIAGNOSTICS
|
||||||
printf("after reduction, moves are ");
|
printf("after reduction, moves are ");
|
||||||
x = nodes[circuit[0]] / DP1 % w;
|
x = nodes[circuit[0]] / DP1 % w;
|
||||||
y = nodes[circuit[0]] / DP1 / w;
|
y = nodes[circuit[0]] / DP1 / w;
|
||||||
|
Reference in New Issue
Block a user