Can you explain me the algorithm for a game tower of Hanoi? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Can you explain me the algorithm for a game tower of Hanoi?

12th Oct 2017, 1:44 PM
Jagath Ratchagan
Jagath Ratchagan - avatar
4 Réponses
0
I understand the tower of Hanoi but not in coding terms
12th Nov 2017, 11:02 AM
jamiedl2003
jamiedl2003 - avatar
0
first rule u can't put a bigger peice on top of a smaller one
12th Nov 2017, 11:03 AM
jamiedl2003
jamiedl2003 - avatar
0
second rule u only have three poles to slide the pieces on
12th Nov 2017, 11:04 AM
jamiedl2003
jamiedl2003 - avatar
0
third rule u have to replicate the first tower on another pole
12th Nov 2017, 11:04 AM
jamiedl2003
jamiedl2003 - avatar