Skip to content

Latest commit

 

History

History
20 lines (10 loc) · 651 Bytes

README.md

File metadata and controls

20 lines (10 loc) · 651 Bytes

TowerOfHanoi

Classic Tower of Hanoi played entirely in console output. Created in Java.

This was a project that I created in my first Java class in high school. It was finished in April, 2017.

Compile and Run "TowerOfHanoi.java" to start the game.

javac TowerOfHanoi.java
java TowerOfHanoi

Play the game as instructed.

Cheat

There is a "Cheat Code" that will utilize the "TowerSolver.java" file. When the player is prompted for a number of rings, if the player inputs the string "nickelbackistheonlygod" and then enters a number of rings, the game will auto-complete with a perfect solution.