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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file pyhanoi_pt-0.2.tar.gz.

File metadata

  • Download URL: pyhanoi_pt-0.2.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for pyhanoi_pt-0.2.tar.gz
Algorithm Hash digest
SHA256 52e1e11e621bdbc55ca55bb6cc48fdab063c178fefd3cdb795939758cc6e6fab
MD5 c8dfa5602b25248ce801c3ac4f22d6c5
BLAKE2b-256 8ad49913887b85db91bc60b84e5a896f4ddd255a14b2f17483fe0b8f10ca929f

See more details on using hashes here.

File details

Details for the file pyhanoi_pt-0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: pyhanoi_pt-0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for pyhanoi_pt-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0e936608db03a0bd12b6a98053024dfb7c8f1a0cf1ffe8e656d143ac76f962d3
MD5 7ca19441f823abc2e1dc037fc35a08e9
BLAKE2b-256 6bbcab67bbf6a1054c2b24ec8e2ccb52bb9491ae7b7ded40568bc10f6bc0248b

See more details on using hashes here.

Supported by

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