The PyTuroChamp, Plankalkül, SOMA, Bernstein, and El Ajedrecista Python chess engines
Python implementations of Alan Turing's TUROCHAMP (1950), John Maynard Smith's SOMA (1961), The Bernstein Chess Program (1957), Leonardo Torres y Quevedo's El Ajedrecista (1912), and some related engines
- PyPy 3 is best, but regular Python 3 or 2 also works
- python-chess (Note that since v0.24, python-chess is for Python 3 only.)
Install python-chess and then either run one of the chess engines with the UCI/XBoard interface (mainly for chess GUIs), e.g.:
$ pypy3 ptc_xboard.py soma
Or run an engine with the console interface (Unicode output; enter your moves as e.g. "e2e4"; use black on white text in the terminal for correct piece colors):
$ pypy3 pyturochamp.py
See the chess GUI page for details on how to set up the chess engines in e.g. Cute Chess or Arena.
Full documentation at mdoege.github.io/PyTuroChamp/
Web browser version
There are also browser-based versions of most of these engines (with a Python backend) at github.com/mdoege/TUROjs.
- Public Domain
- The opening book is licensed under the GPL.