A chess library written in Python.
Pychess - Description - Installation - Usage - Game - Board - Move - Piece - Player - Square - Contributing - License
```bash
# Install from PyPI
pip install 56kyle-pychess
# Install from poetry
poetry add 56kyle-pychess
```
The main purpose of this library is to try and practice constantly improving the quality of a codebase instead of allowing complexity to grow with time.
I was mainly inspired by the books "Clean Code" and "Clean Coder" both written by Robert C. Martin. Most of the code in this library is written with the principles of clean code in mind.
- The Board class is immutable. This means that every time a move is made, a new board is created. This is to prevent the board from being in an invalid state.
- Moves and most geometry related classes are described in terms of Points and Lines
- Almost all iterables are sets to allow for hash comparisons of various frozen dataclass based objects
- The board may not be infinite
- The board must be a rectangle
- API
- Game
- Board
- Move
- Piece
- Player
- Square
- Engine
- UCI
- GUI
- Documentation
TODO
TODO
TODO
TODO
TODO
TODO