The program is a version of the game Hanoi's Tower - a simple mathematical puzzle that consists of three pegs and seven differently sized disks. The aim is to move all seven disks from peg one to peg three, without putting a larger disk on top of a smaller one. The mechanics of the program were fine, processing all the necesary logical steps in order to execute the game correctly. However, the program's poor presentation lets it down badly. We made a few changes to the listing. The basic structure is exactly the same; all we've altered are the parts that are concerned with the program's appearance. Type in the listing as it stands, and run the program. After you've played with it for a few minutes, re-type the lines we've altered. This is what we did: There wasn't any use of colour in the program. We added some different PENs and redefined the ink colours. - We made slight improvements to the front end of the game. The original waited for capital 'C' to be pressed before starting. This was a nuisance. We eliminated it as there was no need.
- The graphical display wasn't terribly inspiring. There was obvious room for improvement in the rings, which were made up from the letter 'Z'. We defined a few of our own characters using the SYMBOL command - see line 25.
- The program has no sound whatsoever. We included a couple of rudimentry spot effects.
- There was no real impetus to finishing the game. We added a counter so that there is some objective - i.e. beating the number of moves.
Anyway, here's the original listing, followed by our amendments: AA |