Skip to main content

Python CLI to explore chessboard positions.

Project description

Chessboard

Python CLI to explore chessboard positions.

TODO

  • Implement a brute force algorithm.

  • Make algorithm faster and smarter.

Development philosophy

  1. Then something that’s beautiful.

  2. 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.
  --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.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.2.1.tar.gz (13.7 kB view hashes)

Uploaded Source

Built Distributions

chessboard-0.2.1-py2.7.egg (10.9 kB view hashes)

Uploaded Source

chessboard-0.2.1-py2-none-any.whl (13.1 kB view hashes)

Uploaded Python 2

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