Skip to content
Python implementations of early chess engines such as Alan Turing's TUROCHAMP (1950), John Maynard Smith's SOMA (1961), and the Bernstein Chess Program (1957)
Branch: master
Clone or download
Latest commit dc8f6b6 Apr 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
icons
pic
README.md
bare
bare.py
bern
bernie_16_moves_win.pgn
bernstein.py
bernstein_ibm704.pgn
berntest.py
chess-eco.pos.txt
glennie.pgn
glennie.py
kasparov.py
kasparov_2012.pgn
movetest.py
newt
newt.py
plan
plan.py
pst.py
ptc
ptc-bare-stockfish.pgn
ptc-host.py
ptc.bat
ptc_worker.py
ptc_xboard.py
pyturochamp.py
pyturochamp_multi.py
rmove
rmove.py
soma
soma-mac.pgn
soma.py
somatest.py
torres.py
xboard-host.py

README.md

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

Prerequisites

  • 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.)

Quick start

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.

Documentation

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.

License

  • Public Domain
  • The opening book is licensed under the GPL.
You can’t perform that action at this time.