Skip to content
petresPublic

About

python3 chess engine

Resources

Stars

2 stars

Watchers

3 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

Repository files navigation

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.

About

python3 chess engine

Resources

Stars

2 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages