280 likes | 799 Views
Tower of Hanoi. Group Member. 1.Kittituch Laokajornboon M.2/8 No.34. 2.Khaochao Prasertsuti M.2/8 No.43. 3.Pasan Kuptnirattisaikul M.2/8 No45. 4.Worawit Narachram M.2/8 No.49. 5.Sarit Kuchaiyanon M.2/8 No.51. Rule of the game.
E N D
Group Member 1.Kittituch Laokajornboon M.2/8 No.34 2.Khaochao Prasertsuti M.2/8 No.43 3.Pasan Kuptnirattisaikul M.2/8 No45 4.Worawit Narachram M.2/8 No.49 5.Sarit Kuchaiyanon M.2/8 No.51
Step1 Move coin 1 to the tower B and move coin 2 to the tower C. Step 2 Move coin 1 to the tower C on top of coin2. Step 3 Move coin 3 to the tower B. Step 4 Move coin 1 to the tower A on top of coin4 Step 5 Move coin 2 from tower C to the tower B on top of coin 3. Pseudo codes
Step 6 Move coin 1 from tower A to tower B on top of coin 2 and 3. Step7 Move coin 4 from tower A to tower C. Step 8 Move coin 1 to tower C on top of coin 4 and move coin 2 to tower A. Step 9 Move coin 3 to tower B. Step 10 Move coin 1 to tower A on top of coin 2. Pseudo codes
Step 11 Move coin 3 to tower C on top of coin 4 and move coin 1 to tower B. Step 12 Move coin 2 to the tower C on top of coin 3 and 4 then move coin 1 to the tower C on top of coin 2,3 and 4 Pseudo codes
START There are 3 tower and 4 ring Move coin 1 to tower B and move coin 2 to tower C Move coin 1 to the tower C on top of coin2.
Move coin 3 to the tower B. Move coin 1 to the tower A on top of coin4 Move coin 2 from tower C to the tower B on top of coin 3. Move coin 1 from tower A to tower B on top of coin 2 and 3.
Move coin 4 from tower A to tower C. Move coin 1 to tower C on top of coin 4 and move coin 2 to tower A. Move coin 3 to tower B.
Move coin 1 to tower A on top of coin 2. Move coin 3 to tower C on top of coin 4 and move coin 1 to tower B. Move coin 2 to the tower C on top of coin 3 and 4 then move coin 1 to the tower C on top of coin 2,3 and 4 end