A simple implementation for simple chess
- Free software: MIT license
- Documentation: http://simple_chess.rtfd.org/
Use 8*8 matrix to represent the state of the chessborad, e.g.,
[[ 1. 1. 0. 0. -1. -1. -1. -1.] [ 1. 1. 1. -1. 1. 1. -1. 1.] [-1. -1. 1. -1. 1. 1. 1. -1.] [-1. 1. -1. 0. 1. -1. 1. -1.] [-1. 1. -1. 1. 1. 0. 1. -1.] [-1. 1. -1. 1. -1. -1. -1. 1.] [ 0. 1. -1. -1. 1. 0. 0. -1.] [ 1. 0. 1. -1. 1. -1. 1. 0.]]
The first hand is 1, and the second hand is -1, 0 is the positions haven't been placed.
TODO
Download the whold file and go into the simple_chess folder, then use following command in the terminal.
pip install simple_chess
TODO
2021-01-01
- init
git clone [email protected]:tokkiu/simple_chess.git cd simple_chess virtualenv . make
git clone [email protected]:tokkiu/simple_chess.git cd simple_chess pip install wheel python setup.py sdist bdist_wheel
- Ary <[email protected]>
- Sarah <[email protected]>
Add your name and email, detail in: https://github.com/tokkiu/simple_chess/graphs/contributors