simon-svn: puzzles: simon

tartarus-commits at lists.tartarus.org tartarus-commits at lists.tartarus.org
Tue Aug 9 18:14:25 BST 2005


SVN root:       svn://ixion.tartarus.org/main
Changes by:     simon
Revision:       6174
Date:           2005-08-09 18:14:25 +0100 (Tue, 09 Aug 2005)

Log message (11 lines):
Implement error checking in Slant. Clue points are now highlighted
in red if it's impossible to fulfill them (either through too many
neighbours connecting to them, or too many not connecting to them),
and edges are highlighted in red if they form part of a loop.

In order to do this I've had to revamp the redraw function
considerably. Each square is now drawn including its top and left
grid edges, but _not_ its bottom or right ones - which means that I
need to draw an extra strip of empty squares outside the actual grid
in order to draw the few pixels which appear on the grid bottom and
right borders and also to red-highlight border clues.

Modified files:
U   puzzles/slant.c

Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=6174&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/puzzles/slant.c?rev=6174&r1=6173&r2=6174



More information about the tartarus-commits mailing list