Card No.:


  Pos. No.:


 
by mouseclick
automatically
delay (in ms)
 



Backtracking  (Java-Script required)

A mouseclick on any card belonging to the array on the right side ("pool") moves that card into the next empty field of the left array ("game-area").

A single mouseclick on any card in the game-area causes a quarter turn of the card counterclockwise.

A double mouseclick on any card in the game-area moves the card back to the original place in the pool.

Aim: all cards should be placed in the game-area such that all neighbours fit, i.e. 12 unicolored letters "A" should appear.

After activation of the option "automatically" a backtracking-algorithm will run down for search of a solution. It may be interrupted by activation of the option "by mouseclick". When a solution is found, the algorithm will end and in that case a search for another solution may be continued with the button "new solution". The delay (in milliseconds) regulates the frequency of the image output.

This backtracking-visualisation results from lessons in computer-science ("Informatik Grundkurs") at Faust-Gymnasium Staufen 1999/2000. H.B. Meyer)
For more backtracking see:  Eight Queens or number puzzles with primes and squares or 5 x 5 magic squares.
zur Seite in deutscher Sprache: