Skip to main content

A simplistic implementation of the knights tour

Reason this release was yanked:

depricated

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

poetry install knightstour-lucasmcgregor

Usage

from knightstour.Chessboard import Chessboard
from knightstour.TourReporter import TourReporter

tours = TourReporter()
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

knightstour-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

knightstour-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file knightstour-0.1.1.tar.gz.

File metadata

  • Download URL: knightstour-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.7.0 Darwin/20.2.0

File hashes

Hashes for knightstour-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c41819490b5458820c063360248f0ffa897be726eff71bad0576a7295151f51a
MD5 1232d58b7668890f6a7b32906b77a39d
BLAKE2b-256 06b71859d92b17e30edc1c1a9369a17b130522fec1ca2ba954a7a9d47fa43489

See more details on using hashes here.

File details

Details for the file knightstour-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: knightstour-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.7.0 Darwin/20.2.0

File hashes

Hashes for knightstour-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9851dbbf323bf074a71189c0b2e671cd39c8bba5b79a60bc6145db13ca1a7cbd
MD5 a583a3d103e92c82098c4df0c9fc4cdd
BLAKE2b-256 02132406ba0d9691e036097db0bfd4f590b88b1e39eda277eee99c76b5263148

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