-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
52 lines (39 loc) · 1.4 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
hanoi-terminal-game
===================
Towers of Hanoi game -- runs in the terminal, implemented in Python3 using the ncurses programming module.
***IMPORTANT: PYTHON3 MUST BE INSTALLED TO PLAY***
to run, type:
python3 hanoi.py
in the terminal.
Objctive:
Move disks from first pole to last
(stacked smallest on top) one disk at a time.
Controls:
'up' key - lift a disk
'down' key - drop a disk
'left' key - switch to left pole
'right' key - switch to right pole
On Startup:
"toggle machine player" -- option to use AI. To play normally, type "n".
"How many disks? (enter a number from 2 to 9)" -- specifies how many disks to use in the tower.
Keyboard shortcuts:
In ai mode:
'p' - pause/unpause
'm' - menu (includes instructions if you ever get lost)
'q' - to quit
'n' - toggle on/off number mode (to better see disk width)
'r' - to restart game (brings back to startup menu)
'up arrow' - increases animation speed
'down arrow' - decreases animation speed
'right arrow' - advances auto-solve one step forward
'left arrow' - moves one auto-solve step backwards
In regular mode:
'p' - pause
'n' - toggles on/off number mode (to better see disk width)
'r' - restart game (brings back to startup menu)
'q' - quit
'up arrow' - lift a disk
'down arrow' - drop a disk
'left arrow' - move left one pole
'right arrow' - move right one pole
credits: Programmed and Designed by Eric Pai. 2013