simon-git: puzzles (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Thu Aug 24 19:40:18 BST 2017
TL;DR:
cb5e49e Net: fix assertion failure on insoluble puzzles.
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2017-08-24 19:40:18
commit cb5e49ef1da51f6bd956739c9af5bdea3d99ee07
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=cb5e49ef1da51f6bd956739c9af5bdea3d99ee07;hp=272beef5f98fecc59c975ea920c601836a6bb08c
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Aug 24 19:38:29 2017 +0100
Net: fix assertion failure on insoluble puzzles.
The solver code still had an assumption, which must have dated before
the Solve menu option was introduced, that all puzzles presented to it
had at least one valid solution, and was enforcing that assumption by
assert(). Now the solver returns a more sensible failure code which
solve_game() can convert into a proper error message.
net.c | 29 +++++++++++++++++++++++------
1 file changed, 23 insertions(+), 6 deletions(-)
More information about the tartarus-commits
mailing list