240 likes | 564 Vues
Tower of Hanoi. Rules. Members. 1.Siriroat Anantchokakul M. 2/6 No. 2 2.Pavarit Nimitpanya M. 2/6 No. 7 3.Namchew Sanguandikul M. 2/6 No. 16 4.Suphachai Isranusorn M. 2/6 No. 20 5.Jirun Techawichein M.2/6 No. 30. Start. There are 5 rings and 3 bars.
E N D
Members 1.Siriroat Anantchokakul M. 2/6 No. 2 2.Pavarit Nimitpanya M. 2/6 No. 7 3.Namchew Sanguandikul M. 2/6 No. 16 4.Suphachai Isranusorn M. 2/6 No. 20 5.Jirun Techawichein M.2/6 No. 30
Start There are 5 rings and 3 bars Move ring 1 to bar C
Move ring 2 to bar B Move ring 1 to bar B Move ring 3 to bar C
Move ring 1 to bar A Move ring 2 to bar C Move ring 1 to bar C
Move ring 4 to bar B Move ring 1 to bar B Move ring 2 to bar A
Move ring 1 to bar A Move ring 3 to bar B Move ring 1 to bar C
Move ring 2 to bar B Move ring 1 to bar B Move ring 5 to bar C
Move ring 1 to bar A Move ring 2 to bar C Move ring 1 to bar C
Move ring 3 to bar A Move ring 1 to bar B Move ring 2 to bar A
Move ring 1 to bar A Move ring 4 to bar C Move ring 1 to bar C
Move ring 2 to bar B Move ring 1 to bar B Move ring 3 to bar C
Move ring 1 to bar A Move ring 2 to bar C Move ring 1 to bar C
For an even number of rings: make the legal move between bars A and B make the legal move between bars A and C make the legal move between bars B and C repeat until complete For an odd number of rings: make the legal move between bars A and C make the legal move between bars A and B make the legal move between bars B and C repeat until complete Pseudo Code