Skip to main content

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

MIT

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

lucasmcgregor.knightstour-0.1.4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

lucasmcgregor.knightstour-0.1.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for lucasmcgregor.knightstour-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2f9c01649f4e4c8714a54c6ae851a0bf580eda7cf340f93767e6f13c15921a90
MD5 6e3eba6ed467b953a8865c2c97eacd9c
BLAKE2b-256 2407bd71a09af33dedec6b912e80e34dac813b11c8f91ecd6f6c28981d547c92

See more details on using hashes here.

File details

Details for the file lucasmcgregor.knightstour-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for lucasmcgregor.knightstour-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0dafac5768a22a5192786cb3d7bc782efc57c74dd0724b67aa4d260e5cda3624
MD5 39de64b7cd901cceb59808ea47dd6daa
BLAKE2b-256 40d3f3f6f3b9b14fb34c99a50440d5a2fb8056a896e23537f4b49a7b7064e838

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