https://github.com/yilmaz08/chess-engine
Simple chess engine written in python
https://github.com/yilmaz08/chess-engine
bot chess chess-engine
Last synced: 12 months ago
JSON representation
Simple chess engine written in python
- Host: GitHub
- URL: https://github.com/yilmaz08/chess-engine
- Owner: yilmaz08
- License: mit
- Created: 2024-06-09T20:08:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T17:44:46.000Z (about 2 years ago)
- Last Synced: 2025-06-04T05:10:39.615Z (about 1 year ago)
- Topics: bot, chess, chess-engine
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chess Engine
This chess engine is fully based on python with no module but random. It uses a weird notation created fully by me. I hope to get it better.
## How it works
Basically, it just lists every possible move in a specific board and then evaluates every board with preset weights. For now:
```
PIECE_EVAL_MULTIPLIER = 1
CHECK_EVAL_MULTIPLIER = 0.5
PROTECTED_TILE_EVAL_MULTIPLIER = 0.05
ENEMY_PROTECTED_TILE_EVAL_MULTIPLIER = -0.05
HANGING_PIECE_EVAL_MULTIPLIER = -0.75
ENEMY_HANGING_PIECE_EVAL_MULTIPLIER = 0.25
```
It is not actually done yet. However it is already able to play chess (it doesn't play well obviously).
Its current elo based on a chess.com account I have created for it is **350**. I hope to get it to 500 soon by improving the evaluation function and adding more parameters.