python3 chess engine
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
player
positions
web
.gitignore
README.md
base.py
computer.py
printer.py
profiler.py
settings.py
test.py

README.md

Chess Engine

A simple chess engine written in python3. You can play on the terminal or on a web interface. The chess engine is quite complete. Still missing are: Fifty-move rule and the threefold repetition.

Web Interface

The web interface has two dependecies:

  • flask | Micro web framework, used also as webserver
  • simplejson | Writing/Reading JSON

Calling web/web.py starts the webserver with the chess engine on port 5000.

AI

Till now three different AIs are implemented (https://github.com/petres/chess/blob/master/player/ki.py):

  • PureRandom

    The simplest one. Does randomly draw a move from all possible moves.

  • KillBill

    Also a quite simple KI. Captures if possible, if not draw a random move.

  • KillBest

    Capture if opposite piece has lower value or isn't guarded. Check if possible (only on non guarded fields). Do randomly draw a move.