Tower-Hanoi

Tower of Hanoi

Description

A module for playing the Tower of Hanoi puzzle game in Python or PowerShell.

Tower of Hanoi Image

Python requires the pynput module to capture keypress input events.

pip install pynput
pip3 install pynput

When the Python game is started, keypress input events are captured but not passed onto the system. Save and exit the game before using other programs.

The PowerShell script MUST be started from a real console window, not an ISE, because keypress detection is used.

Unsigned downloaded PowerShell scripts need to be unblocked before use.

Unblock-File -Path .\Start-TowerHanoi.ps1

Bonus Scripts: Holiday themed “Xmas Tree” Tower of Hanoi games for Python or PowerShell.

Xmas Tree Image

Please consider giving to cancer research.

Make a Difference

If you enjoy this software, please consider donating to one of the following:

American Cancer Society

National Brain Tumor Society