An open API service indexing awesome lists of open source software.

https://github.com/mattlean/chess-move-check

List all legal Chess moves for given player & board
https://github.com/mattlean/chess-move-check

python script

Last synced: 4 months ago
JSON representation

List all legal Chess moves for given player & board

Awesome Lists containing this project

README

          

# chess-move-check.py #
Written by: Matthew Lean

### How to Run ###
First you must have Python installed. Then to run the program you input the following command:
`python chess-move-check.py `

`` represents the file location of the text file that tells the script the current state of the board.

The first line of file must be the current player's color.
Each line afterwards represents a chess piece. They are formatted in this way:
`,,`

You can view some examples in the 'testfiles' folder included with the script.