aboutsummaryrefslogtreecommitdiff
path: root/PuzzleApplet.java
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2009-04-30 17:56:56 +0000
committerSimon Tatham <anakin@pobox.com>2009-04-30 17:56:56 +0000
commit3cd83d05e899e62232b68ea95cf7f07505ebd79f (patch)
treec469980a44497defe7c8b8106ecd8d7dd9c155dc /PuzzleApplet.java
parent4bb9232bcb2a8d5c7e43e54136f839df142e6204 (diff)
downloadpuzzles-3cd83d05e899e62232b68ea95cf7f07505ebd79f.zip
puzzles-3cd83d05e899e62232b68ea95cf7f07505ebd79f.tar.gz
puzzles-3cd83d05e899e62232b68ea95cf7f07505ebd79f.tar.bz2
puzzles-3cd83d05e899e62232b68ea95cf7f07505ebd79f.tar.xz
Fix a misdesign I must have missed when I reviewed the Killer patch:
merge_some_cages() was written in the assumption that it would always be able to do something, in that it returned void on success and if it couldn't find anything to do it would just loop round forever trying the same things over and over again. Now it makes a methodical list of the pairs of cages which are merge candidates, goes through them in a random order until it finds a viable one, and returns a boolean indicating whether it succeeded or ran out of candidates. A test case which previously hung and now does not is "solo --generate 1 7jxkdt#12345-10". [originally from svn r8541]
Diffstat (limited to 'PuzzleApplet.java')
0 files changed, 0 insertions, 0 deletions