+ 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
2 ответов
+ 8
yes... the challanges is to implement this algorithm oop or functions animated or pure
+ 6
Here is my Python for this
https://code.sololearn.com/cPpWngbPT6s4