Chess for player vs. player, player vs. AI, or AI vs. AI. Uses Tkinter to get initial game parameters. Uses Pygame to draw the board and pieces and to get user mouse clicks. Run with the “-h” option to get full listing of available command line flags.
Python Chess has a Pygame website page, too.
Download the latest version, PythonChess_v0.7.zip. Once unzipped, run PythonChessMain.py with your favorite Python interpreter. Prerequisites are Python and Pygame. Tested with Python 2.6 and 2.4, Pygame 1.8.1.
- Python Chess, Version 0.1. April 1, 2009
- Python Chess v. 0.2 – Making code pretty. April 5, 2009
- Python Chess v0.3 – Display and UI with Pygame. April 6, 2009
- Python Chess v 0.4 – Better graphics, Tkinter. April 14, 2009
- Python Chess, v 0.5 – Improved AI. April 16, 2009
- Python Chess, v0.6 – Compatibility Fixes. April 21, 2009
- Python Chess v 0.7 – Lowering Pygame’s CPU Usage. April 28, 2009
Yes, the final version is 0.7. I started at 0.1 and incremented from there as I thought of new features. The project seemed pretty complete (to me) after about v. 0.5 or so.