How to resolve the algorithm Solve a Hopido puzzle step by step in the Phix programming language
How to resolve the algorithm Solve a Hopido puzzle step by step in the Phix programming language
Table of Contents
Problem Statement
Hopido puzzles are similar to Hidato. The most important difference is that the only moves allowed are: hop over one tile diagonally; and over two tiles horizontally and vertically. It should be possible to start anywhere in the path, the end point isn't indicated and there are no intermediate clues. Hopido Design Post Mortem contains the following: "Big puzzles represented another problem. Up until quite late in the project our puzzle solver was painfully slow with most puzzles above 7×7 tiles. Testing the solution from each starting point could take hours. If the tile layout was changed even a little, the whole puzzle had to be tested again. We were just about to give up the biggest puzzles entirely when our programmer suddenly came up with a magical algorithm that cut the testing process down to only minutes. Hooray!" Knowing the kindness in the heart of every contributor to Rosetta Code, I know that we shall feel that as an act of humanity we must solve these puzzles for them in let's say milliseconds. Example: Extra credits are available for other interesting designs.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Solve a Hopido puzzle step by step in the Phix programming language
Source code in the phix programming language
You may also check:How to resolve the algorithm Loops/With multiple ranges step by step in the ALGOL 60 programming language
You may also check:How to resolve the algorithm Repeat a string step by step in the Fortran programming language
You may also check:How to resolve the algorithm Totient function step by step in the Go programming language
You may also check:How to resolve the algorithm Population count step by step in the R programming language
You may also check:How to resolve the algorithm Knuth shuffle step by step in the Icon and Unicon programming language