Giter Club home page Giter Club logo

hanoigl's Introduction

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

hanoigl's People

Contributors

d0k avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

hanoigl's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.