From 5e22080bcd581fe4e2a07ca897ebea19a2961f66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20K=C3=B6lker?= Date: Thu, 1 Oct 2015 18:47:55 +0200 Subject: [PATCH] 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). --- towers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2