mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Improve Towers error highlighting.
Highlight clues of value n in Towers if its row/column contains an increasing sequence of length n, the last number of which is not equal to the number of rows/columns (i.e. such that the sequence will have to be extended, in violation of the clue).
This commit is contained in:

committed by
Simon Tatham

parent
21b8323b2f
commit
5e22080bcd
3
towers.c
3
towers.c
@ -1248,7 +1248,8 @@ static int check_errors(const game_state *state, int *errors)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n > clues[i] || (j == w && n < clues[i])) {
|
if (n > clues[i] || (best == w && n < clues[i]) ||
|
||||||
|
(best < w && n == clues[i])) {
|
||||||
if (errors) {
|
if (errors) {
|
||||||
int x, y;
|
int x, y;
|
||||||
CLUEPOS(x, y, i, w);
|
CLUEPOS(x, y, i, w);
|
||||||
|
Reference in New Issue
Block a user