in reply to Re: The 15 Puzzle
in thread The 15 Puzzle
Thanks.
Note that not all configurations of the puzzle are solvable. My check for $inversions % 2 == 0 makes sure we get a solvable configuration. I don't see anything comparable in your code, though it could be I'm just not seeing it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The 15 Puzzle
by afoken (Chancellor) on Jun 10, 2020 at 12:35 UTC |