Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/erickarpovits/towers-of-hanoi-project

Implementation of Towers of Hanoi in C++ and Allegro with an option for the user to play it themselves :)
https://github.com/erickarpovits/towers-of-hanoi-project

allegro allegro-5 allegro-framework allegro5 allegro5-library codeblocks-ide cplusplus cplusplus-11 game-development linked-lists object-oriented-programming stacks towers-of-hanoi

Last synced: about 1 month ago
JSON representation

Implementation of Towers of Hanoi in C++ and Allegro with an option for the user to play it themselves :)

Awesome Lists containing this project

README

        

# Towers of Hanoi - [Eric Karpovits](https://github.com/EricKarpovits)






The Towers of Hanoi is a game in which a stack of disks is moved from the first peg to a third peg with the help of an intermediate post. Only one disk may be moved at one time and larger disks may never be on top of smaller disks.

3Blue1Brown Towers of Hanoi Video Explanation: [link](https://www.youtube.com/watch?v=2SUvWfNJSsM)

This project represents the culmination of the Algorithms/Recursion unit.

The game was inspired by [`Math is Fun`](http://www.mathsisfun.com/games/towerofhanoi.html)

Levels of Achievement:
-----
* C : Use console to create an animation of recursive solution.
* A-: Use Allegro to create an animation of the recursive solution. Hard coding number of discs is OK.
* A : Use Allegro to create a clickable walk through of the recursive solution. User should be able to change number of discs (typical range is 5 - 7).
* A+: Make the game also playable by the user.
* **All Levels Achieved**