GitXplorerGitXplorer
d

hanoigl

public
1 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
0e45f5bb29deb605958e5bfb135bdf866cb196ae

add README and TODO

dd0k committed 17 years ago
Unverified
ebb42780a68f5b0aa4850c759c4a157ab96b5edd

translate comments, messages into English

dd0k committed 17 years ago
Unverified
e930c37bf1c4e3ea3eb56fb7125d85453974f5f3

replace old buildsystem with CMake

dd0k committed 17 years ago
Unverified
db295dcc58faedf1174353e341750d429c5b0ca6

make MANUALLY more comfortably

dd0k committed 17 years ago
Unverified
ad0c8c53efbcb9cb61a54ba8cb5c4765a1ece0db

OSX build support

committed 17 years ago
Unverified
c848751e16ec54ea705c11ea56fb199cf8755bd2

constify a bit

dd0k committed 18 years ago

README

The README file for this repository.

hanoigl

Towers of Hanoi visualization in OpenGL. With automatic or manual movement.

Dependencies

  • OpenGL (or Mesa)
  • GLUT (or freeglut on linux)
  • CMake

Usage

To change the disk count you may edit disks.txt. There is an artifical limit on 20 disks so you don't shoot yourself in the foot by memory usage.

Interface

The upper left corner shows the elapsed time in seconds, the count of elapsed
movements and the movement count for the optimal solution.

Keyboard
~~~~~~~~
 - Camera movements with cursor keys
 - Reset view with space
 - zoom with '+' and '-' keys
 - toggle fullscreen with 'f'
 - reset animation with 'r'
 - change animation speed with 's' and 'x'

Manual Movement

Currently you can't switch to manual movement at runtime. You can change the setting in main.c and recompile.

  • use the keys '1', '2' and '3' to move between the pins
  • e. g. if you wan't to take the upmost disk from pin 1 and put it on pin 3 you must press '1' '3' consecutively