A simplistic implementation of the knights tour
Project description
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
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 lucasmcgregor.knightstour-0.1.4.tar.gz.
File metadata
- Download URL: lucasmcgregor.knightstour-0.1.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.8.9 Linux/4.19.121-linuxkit
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f9c01649f4e4c8714a54c6ae851a0bf580eda7cf340f93767e6f13c15921a90
|
|
| MD5 |
6e3eba6ed467b953a8865c2c97eacd9c
|
|
| BLAKE2b-256 |
2407bd71a09af33dedec6b912e80e34dac813b11c8f91ecd6f6c28981d547c92
|
File details
Details for the file lucasmcgregor.knightstour-0.1.4-py3-none-any.whl.
File metadata
- Download URL: lucasmcgregor.knightstour-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.8.9 Linux/4.19.121-linuxkit
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dafac5768a22a5192786cb3d7bc782efc57c74dd0724b67aa4d260e5cda3624
|
|
| MD5 |
39de64b7cd901cceb59808ea47dd6daa
|
|
| BLAKE2b-256 |
40d3f3f6f3b9b14fb34c99a50440d5a2fb8056a896e23537f4b49a7b7064e838
|