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

https://github.com/miskibin/chessengine

chess engine in python
https://github.com/miskibin/chessengine

ai chess engine minimax-algorithm

Last synced: 2 months ago
JSON representation

chess engine in python

Awesome Lists containing this project

README

        

# chess engine in python
Engine is written in python and uses the minimax algorithm with alpha-beta pruning to find the best move.
## note
engine can not compete with the best engines in the world, it's elo is around 1600. Python is not the best language for chess engines. It's slow and not optimized.

## machine learning module.
I am currently working on model that will evaluate position on [machineLearning branch](https://github.com/michalskibinski109/chessEngine/tree/machineLearning)

## Usage
run `api.py` to start server with interactive chess board.
change depth of engine to set its strength.
- 4 ~ 0.5s per move
- 5 ~ 5s per move (Optimal)
- 6 ~ 50s per move
### gui
![image](https://user-images.githubusercontent.com/77834536/202874301-d21d9331-3fac-4675-acc6-1096ab0895cf.png)

### You can see some log messages on server.
![image](https://user-images.githubusercontent.com/77834536/202874276-3e104bb3-72bc-4a22-8562-6adf72fc0a10.png)