Skip to content

nelson-sean/hanoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hanoi

An implementation of the puzzle game Towers of Hanoi for the linux terminal. This games requires the ncurses library.

Compilation

make

Instructions

To run the program

hanoi [-c color] [-n # of disks | -m]

Runtime Options

-c : choose a color for the disks

-n : choose the number of disks (default 5)

-m : play with the maximum number of disks that can fit (note: This may result in a game that is unsolvable before the heat death of the universe)

Controls

Use j,k,l or left,down,right to select a disk to move. A white marker will appear above the peg that disk is on. Use j,k,l or left,down,right to select the destination peg that disk will be moved to.

Note

If you experience flickering, use a buffered terminal or terminal multiplexer such as GNU screen or tmux.

Screenshot

hanoi

About

Towers of Hanoi in ncurses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published