Skip to main content

A universal brute-force tower of hanoi solver

Project description

PyHanoi

This is a universal tower of hanoi solver, which can "theorotically" solve the problem for any number of rings and any number of towers.

This doesn't use k-peg or any other algorithm. this program just brute-forces until it finds smallest solution (that's why this is universal) and other than normal tower of hanoi problems, it works for a problem going from ANY state A to state B.

While the solution given should be correct - the time required to solve it increases exponentially, with more towers and rings.

Installation

soon will write a setup.py.

for now just git clone this repo:

git clone https://github.com/pranavtaysheti/PyHanoi
cd PyHanoi
python -m pyhanoi

License

GNU General Public License v3.0 or later

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhanoi_pt-0.2.tar.gz (16.1 kB view hashes)

Uploaded Source

Built Distribution

pyhanoi_pt-0.2-py2.py3-none-any.whl (17.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page