[challenge] Tower of Hanoii --- this time as swarm intelligence | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10

[challenge] Tower of Hanoii --- this time as swarm intelligence

Two People having no clue of TOH can solve the Problem easily, if they hold the following rule: Player 1: Is the owner of the first slice. All he has to do, is to Keep his Hand on this slice and move it around middle - left - right - middle... Player 2: Since Player 1 holds his hand on slice 1, he has to choose the lower slice and put it on the higher one. an empty place is the highest. Player1 Begins, Game is over, if Player2 cant move a slice. Number of slices does not matter. Implement this algorithm with your preferred weapon Have fun

3rd Jan 2018, 1:47 PM
Oma Falk
Oma Falk - avatar
2 Answers
+ 8
yes... the challanges is to implement this algorithm oop or functions animated or pure
3rd Jan 2018, 9:30 AM
Oma Falk
Oma Falk - avatar
3rd Jan 2018, 1:46 PM
Oma Falk
Oma Falk - avatar