Knights Tour 0.1.x
A very simple implementation of the knights tour. Intended to create a lot of data work with a little bit of code.
Installation
Use poetry to install package
To run a tour:
poetry run knightstour
Usage
from lucasmcgregor.knightstour.Knightstour import Knightstour
from lucasmcgregor.knightstour.TourReporter import TourReporter
tours = TourReporter(logging=False)
board = Chessboard(x_size=8, y_size=8, reporter=tours)
board.solve_board()
print("moves checked: {0}".format(tours.moves))
print("we found {0} tours".format(tours.tours_count))
License
Release files for lucasmcgregor.knightstour 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lucasmcgregor.knightstour-0.1.4.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lucasmcgregor.knightstour-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / lucasmcgregor.knightstour-0.1.4.tar.gz
| Download URL | lucasmcgregor.knightstour-0.1.4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f9c01649f4e4c8714a54c6ae851a0bf580eda7cf340f93767e6f13c15921a90
|
|
BLAKE2b-256 checksum How to use checksums |
2407bd71a09af33dedec6b912e80e34dac813b11c8f91ecd6f6c28981d547c92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.9 Linux/4.19.121-linuxkit
|
Release files / lucasmcgregor.knightstour-0.1.4-py3-none-any.whl
| Download URL | lucasmcgregor.knightstour-0.1.4-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dafac5768a22a5192786cb3d7bc782efc57c74dd0724b67aa4d260e5cda3624
|
|
BLAKE2b-256 checksum How to use checksums |
40d3f3f6f3b9b14fb34c99a50440d5a2fb8056a896e23537f4b49a7b7064e838
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.9 Linux/4.19.121-linuxkit
|