Skip to main content

Python CLI to explore chessboard positions.

Project description

Chessboard

Python CLI to explore chessboard positions.

TODO

  • Make algorithm faster and smarter.

Development philosophy

  1. First create something that work.

  2. Then something that’s beautiful.

  3. Finally works on performance.

Install

$ git clone git@github.com:kdeldycke/chessboard.git
$ cd ./chessboard
$ python ./setup.py develop

Usage

$ chessboard --help
Usage: chessboard [OPTIONS]

  Python CLI to explore chessboard positions.

Options:
  --version             Show the version and exit.
  -l, --length INTEGER  Length of the board.
  -h, --height INTEGER  Height of the board.
  -v, --verbose         Print much more debug statements.
  --king INTEGER        Number of kings to add to the board.
  --queen INTEGER       Number of queens to add to the board.
  --help                Show this message and exit.

Unit-tests

$ python ./setup.py nosetests

Third-party

This project package’s boilerplate is sourced from the code I wrote for Scaleway’s postal-address module, which is published under a GPLv2+ License.

The CLI code is based on the one I wrote for the kdenlive-tools module, published under a BSD license.

License

This software is licensed under the GNU General Public License v2 or later (GPLv2+).

ChangeLog

0.3.0 (2015-08-12)

  • Add Queen piece.

  • Fix displaying of piece representation.

  • Fix persistence of square occupancy between each piece addition.

0.2.1 (2015-08-11)

  • Fix King displacement map.

0.2.0 (2015-08-11)

  • Allow initialization of board pieces.

  • Implement brute-force solver.

0.1.1 (2015-08-08)

  • Package re-release to fix bad version number.

0.1.0 (2015-08-08)

  • First public release.

  • Implements a CLI to inititalize the chessboard.

0.0.0 (2015-08-08)

  • First commit.

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

chessboard-0.3.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distributions

chessboard-0.3.0-py2.7.egg (11.7 kB view details)

Uploaded Source

chessboard-0.3.0-py2-none-any.whl (14.0 kB view details)

Uploaded Python 2

File details

Details for the file chessboard-0.3.0.tar.gz.

File metadata

  • Download URL: chessboard-0.3.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for chessboard-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0be0a6b2e43e2f235db8045f62eff7caa0582e749592a1d7d08460f7152f6215
MD5 5658e1f3cd2a592e078adf228ab22640
BLAKE2b-256 022527737a6f9f0ffb0391a63ff4022edce033dbf12af4b6f9dd42583424da0d

See more details on using hashes here.

File details

Details for the file chessboard-0.3.0-py2.7.egg.

File metadata

File hashes

Hashes for chessboard-0.3.0-py2.7.egg
Algorithm Hash digest
SHA256 b7dc394b3161964bad8fa4849b33f698c0f2fdd672143caa6197683fecce06dc
MD5 b7d47718dbc10aaa96146c980dec319e
BLAKE2b-256 94bea2c1374cf6994969def1a3c001aecb033c58cfd48f152f7203d97c55f576

See more details on using hashes here.

File details

Details for the file chessboard-0.3.0-py2-none-any.whl.

File metadata

File hashes

Hashes for chessboard-0.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 23bd2d0c6e468b47979f928ce109004feab6e7ab5319d3d82bcaf2ff082d86b1
MD5 936c949250b006cba0c8e37cef7952b9
BLAKE2b-256 0424294b4e8ea36d4b8e97fc100d3951786279d99836eaec5551da42d88dd950

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page