Skip to content

Hanoi tower game solved automaticaly by software developed in C

License

Notifications You must be signed in to change notification settings

ClecioJung/hanoiTower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hanoi tower game

Hanoi tower game solved automaticaly. It posseses the following characteristics:

  • Developed with C99;
  • The Hanoi Tower is a puzzle with the following rules:
    • Only one disk may be moved at a time;
    • Each move consists of taking the upper disk from one of the towers and placing it on top of another tower;
    • No disk may be placed on top of a disk that is smaller than it;
  • This code is platform dependent and will work only on Linux;
  • It produces an terminal animation just like this:

Alt Text

Usage

Download this project and compile it by typing the command make in its folder. Next, just run the executable ./hanoiTower. You may pass as an argument the number of discs of the game (the minimum is 4 discs). Here is an example:

./hanoiTower 5

About

Hanoi tower game solved automaticaly by software developed in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published