https://github.com/tazeg/jepychess
Simple Python Chess Program
https://github.com/tazeg/jepychess
alpha-beta chess python
Last synced: about 1 year ago
JSON representation
Simple Python Chess Program
- Host: GitHub
- URL: https://github.com/tazeg/jepychess
- Owner: Tazeg
- License: gpl-2.0
- Created: 2014-09-21T19:35:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T08:21:18.000Z (over 5 years ago)
- Last Synced: 2025-04-23T08:11:38.579Z (about 1 year ago)
- Topics: alpha-beta, chess, python
- Language: Python
- Homepage: http://fr.jeffprod.com/blog/2014/comment-programmer-un-jeu-dechecs.html
- Size: 29.3 KB
- Stars: 22
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
JePyChess
=========
Introducing "JeffProd Simple Python Chess Program" running in command line.
You can play a full game versus it.
Run it with the command : ./main.py
It supports actually :
- promote
- under-promote
- capture "en passant"
Commands are :
- **new** to start a new game
- **e2e4** or **e7e8q** for example to move a piece. Promotes are q,r,n,b for queen, rook, knight, bishop
- **undomove** to cancel the last move
- **legalmoves** to show legal moves for side to move
- **go** requests the engine to play now
- **setboard fen** to set the board as the FEN position given
- **getboard** to export the current FEN position
- **sd x** to set the depth search
- **perft x** to test the move generator (x = search depth)
- **quit**... to quit
Things to do :
- move ordering
- quiescent search
- 50 moves rule
- 3 repetitions rule
- time settings
- opening book
Requirements :
- Python 3
More information on :
https://fr.jeffprod.com/blog/2014/comment-programmer-un-jeu-dechecs/