From: Jonas Kölker Date: Thu, 1 Oct 2015 16:47:55 +0000 (+0200) Subject: Improve Towers error highlighting. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=5e22080bcd581fe4e2a07ca897ebea19a2961f66;p=sgt-puzzles.git 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). --- diff --git a/towers.c b/towers.c index 7666af9..9525adb 100644 --- a/towers.c +++ b/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) { int x, y; CLUEPOS(x, y, i, w);