This app is the final assessment of The MIT Master Trainers Program in Educational Mobile Computing, held March 24-26, 2016 at Boston, USA
I would like to thank Karen Lang, David Wolber and Josh Sheldon for their encouragement, feedback and support. My special thank goes to Karen Lang for her time correcting the English grammar for the tutorial:
This tutorial is for advanced learners who want to explore the power of MIT App Inventor to create a complex and complicated Android game app, the Town Of Hanoi.
The Town Of Hanoi, also the Tower of Brahma or Lucas' Tower, is considered a classical strategy game to demonstrate how algorithms work for computer science students as well as the general public. It is explained below:
There are 3 poles.
Bars are put onto the first pole in their size order, which means that the widest bar should be on the bottom of the pole. Here is an example:
The number of bars on the pole can be chosen by the players.
Players have to move all of the bars from the first pole on the left to the third pole in the right using the second bar in the middle, with the following rules:
o Only one bar can be moved at one time.
o You cannot place a wider bar on top of a smaller bar.