https://github.com/harry-hopkinson/chess
Chess with Python using the Pygame Module and the Stockfish Engine.
https://github.com/harry-hopkinson/chess
chess pygame python
Last synced: about 1 year ago
JSON representation
Chess with Python using the Pygame Module and the Stockfish Engine.
- Host: GitHub
- URL: https://github.com/harry-hopkinson/chess
- Owner: Harry-Hopkinson
- Created: 2021-09-09T08:42:52.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T08:48:00.000Z (over 2 years ago)
- Last Synced: 2025-05-13T14:17:20.097Z (about 1 year ago)
- Topics: chess, pygame, python
- Language: Python
- Homepage:
- Size: 181 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Overview
[](https://github.com/official-stockfish/Stockfish/actions)
[](https://ci.appveyor.com/project/mcostalba/stockfish/branch/master)
Chess with Python using the Pygame Module and the Stockfish Engine.
[Stockfish](https://stockfishchess.org) is a free, powerful UCI chess engine
derived from Glaurung 2.1. Stockfish is not a complete chess program and requires a
UCI-compatible graphical user interface (GUI) (e.g. XBoard with PolyGlot, Scid,
Cute Chess, eboard, Arena, Sigma Chess, Shredder, Chess Partner or Fritz) in order
to be used comfortably. Read the documentation for your GUI of choice for information
about how to use Stockfish with it.
The Stockfish engine features two evaluation functions for chess, the classical
evaluation based on handcrafted terms, and the NNUE evaluation based on efficiently
updatable neural networks. The classical evaluation runs efficiently on almost all
CPU architectures, while the NNUE evaluation benefits from the vector
intrinsics available on most CPUs (sse2, avx2, neon, or similar).
## Files
Run the main.py file found in src/main.py
* [main.py](https://github.com/Harry-Hopkinson/Chess/blob/main/src/main.py), the main program you run.
* [Readme.md](https://github.com/Harry-Hopkinson/Chess-in-Python/blob/main/README.md), the file you are currently reading.
* [Copying.txt](https://github.com/Harry-Hopkinson/Chess-in-Python/blob/main/docs/Stockfish%20Official%20Docs/Copying.txt), a text file containing the GNU General Public License version 3.
* [AUTHORS](https://github.com/Harry-Hopkinson/Chess-in-Python/blob/main/docs/Stockfish%20Official%20Docs/AUTHORS.txt), a text file with the list of authors for the project
* [src](https://github.com/Harry-Hopkinson/Chess-in-Python/tree/main/src), a subdirectory containing the full source code, including a Makefile
that can be used to compile Stockfish on Unix-like systems.
* a file with the .nnue extension, storing the neural network for the NNUE
evaluation. Binary distributions will have this file embedded.
## Dependencies
This project needs the following commands to be installed. Use your command terminal for your native operating system.
pip install pygame - Windows
python3 -m pip install -U pygame --user - Mac Os
pip install stockfish
pip install chess