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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52e1e11e621bdbc55ca55bb6cc48fdab063c178fefd3cdb795939758cc6e6fab
|
|
| MD5 |
c8dfa5602b25248ce801c3ac4f22d6c5
|
|
| BLAKE2b-256 |
8ad49913887b85db91bc60b84e5a896f4ddd255a14b2f17483fe0b8f10ca929f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e936608db03a0bd12b6a98053024dfb7c8f1a0cf1ffe8e656d143ac76f962d3
|
|
| MD5 |
7ca19441f823abc2e1dc037fc35a08e9
|
|
| BLAKE2b-256 |
6bbcab67bbf6a1054c2b24ec8e2ccb52bb9491ae7b7ded40568bc10f6bc0248b
|