chiark / gitweb /
Net: fix assertion failure on insoluble puzzles.
authorSimon Tatham <anakin@pobox.com>
Thu, 24 Aug 2017 18:38:29 +0000 (19:38 +0100)
committerSimon Tatham <anakin@pobox.com>
Thu, 24 Aug 2017 18:38:29 +0000 (19:38 +0100)
commitcb5e49ef1da51f6bd956739c9af5bdea3d99ee07
tree7137abd2c410433e0e58a29d8af0f2f335e7903d
parent272beef5f98fecc59c975ea920c601836a6bb08c
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