aboutsummaryrefslogtreecommitdiff
path: root/PuzzleApplet.java
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2019-04-10 07:37:54 +0100
committerSimon Tatham <anakin@pobox.com>2019-04-10 07:37:54 +0100
commit42ec08493a3dc95b6214c0676e4a280a0281ec05 (patch)
treee0ec2a41252e543346a66c4ce0e3e980597a6dca /PuzzleApplet.java
parenta2b70e2a6e90819df09812e96b153b1f6a408cde (diff)
downloadpuzzles-42ec08493a3dc95b6214c0676e4a280a0281ec05.zip
puzzles-42ec08493a3dc95b6214c0676e4a280a0281ec05.tar.gz
puzzles-42ec08493a3dc95b6214c0676e4a280a0281ec05.tar.bz2
puzzles-42ec08493a3dc95b6214c0676e4a280a0281ec05.tar.xz
Dominosa: more sophisticated grid layout in >= Hard mode.
The new Hard and Extreme difficulty levels allow you to make a start on a grid even if there is no individual domino that can be easily placed. So it's more elegant to _enforce_ that, in the same way that Hard-mode Slant tries to avoid the initial toeholds that Easy mode depends on. Hence, I've refactored the domino layout code into several alternative versions. The new one, enabled at Hard mode and above, arranges that every domino has more than one possible position, so that you have to use some kind of hard deduction to even get off the ground. While I'm at it, the old layout system has had a makeover: in the course of its refactoring, I've arranged to iterate over the domino values _and_ locations in random order, instead of going over the locations in grid order. The idea is that that might eliminate a directional bias. But more importantly, it changes the previous meaning of random number seeds.
Diffstat (limited to 'PuzzleApplet.java')
0 files changed, 0 insertions, 0 deletions