Add hinting feature to Fifteen (press 'h' for a hint).

This is really an incremental solver. It alternates between solving
rows and solving columns. Each row and column is solved one piece at
a time. Except for some temporary trickery with the last two pieces
in a row or column, once a piece is solved it is never moved again.

(On non-square grids it first solves some rows or some columns until
the unsolved part is a square, then starts alternating.)
This commit is contained in:
Jonas Kölker
2015-10-08 12:20:15 +02:00
committed by Simon Tatham
parent 5ddb011a57
commit 12fabc4add
2 changed files with 218 additions and 0 deletions

View File

@ -617,6 +617,10 @@ mouse pointer.
The arrow keys will move a tile adjacent to the space in the direction
indicated (moving the space in the \e{opposite} direction).
Pressing \q{h} will make a suggested move. Pressing \q{h} enough
times will solve the game, but it may scramble your progress while
doing so.
(All the actions described in \k{common-actions} are also available.)
\H{fifteen-params} \I{parameters, for Fifteen}Fifteen parameters