Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tebogoyungmercykay/towers_of_hanoi_puzzle_solver
Towers of Hanoi is a popular puzzel game that consists out of two main components: three towers and n number of disks. The goal of this puzzel game is to move the tower of disks from one tower to another tower with only moving a single disk at a time.
https://github.com/tebogoyungmercykay/towers_of_hanoi_puzzle_solver
abstract-classes classes exceptions inheritance iterative-approach objects oop-in-cpp pointers puzzle-game recursion stl stl-stacks template-classes tower-of-hanoi uml
Last synced: about 2 months ago
JSON representation
Towers of Hanoi is a popular puzzel game that consists out of two main components: three towers and n number of disks. The goal of this puzzel game is to move the tower of disks from one tower to another tower with only moving a single disk at a time.
- Host: GitHub
- URL: https://github.com/tebogoyungmercykay/towers_of_hanoi_puzzle_solver
- Owner: TebogoYungMercykay
- Created: 2022-11-26T13:26:23.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-21T10:00:51.000Z (over 1 year ago)
- Last Synced: 2024-11-20T16:06:27.957Z (about 2 months ago)
- Topics: abstract-classes, classes, exceptions, inheritance, iterative-approach, objects, oop-in-cpp, pointers, puzzle-game, recursion, stl, stl-stacks, template-classes, tower-of-hanoi, uml
- Language: C++
- Homepage:
- Size: 216 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
________________________________________________________________________________________
# Towers Of Hanoi In C++
________________________________________________________________________________________
## Description- Towers of Hanoi is a popular puzzel game that consists out of two main components: three towers
and n number of disks. The goal of this puzzel game is to move the tower of disks from one tower to
another tower with only moving a single disk at a time. Also a constraint that is placed at all times
on the game is that no disk may be placed on another disk if the bottom disk is smaller then the top
disk.- ### More information can be found at some of the following links:
- https://en.wikipedia.org/wiki/Tower_of_Hanoi
- https://www.tutorialspoint.com/data_structures_algorithms/tower_of_hanoi.htm
- https://www.geeksforgeeks.org/c-program-for-tower-of-hanoi/
- https://www.mathsisfun.com/games/towerofhanoi.htm
________________________________________________________________________________________
## UML Diagram And Functions________________________________________________________________________________________
- ### Requirements before running code:
- Install an IDE that compiles and runs C++ codes. Recommendation VS Code
- How to setup WSL Ubuntu terminal shell and run it from Visual Studio Code: https://www.youtube.com/watch?v=fp45HpZuhS8&t=112s
- ### About Codes:
- The code is all written by myself only
- I hard code them as part of my practice code, practical and assignemnts for my coding modules.
- ### About Me:
- Tebogo Sello Selepe
- Computer Sciences at Tuks
________________________________________________________________________________________
## Makefile
##### NB: A makefile Is Included to compile and run the codes on the terminal with the following commands:=
- make clean
- make
- make run```C++
main:
g++ -g *.cpp -std=c++98 -pedantic -o mainclean:
rm -f *.o *.tar.gz main
reset
clearrun:
valgrind --leak-check=full ./maintar:
tar -cvz *.* -f Towers_of_Hanoi.tar.gz
untar:
tar -zxvf *.tar.gz
```
________________________________________________________________________________________