New Python chess module
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

New Python chess module

From: Will McGugan <news@NOwillmcguganSPAM.com>
Date: Thu Sep 29 2005 - 17:21:16 CEST

Hi folks,

I've written a Python chess module that does the following.

* Reads / Writes PGN files
* Write FEN files
* Validates moves
* Lists legal moves
* Detects check / mate / stalemate / 50 move rule / threefold repetition

Its still rough around the edges and not fully tested. I'll eventualy
release a more polished version and possibly put it on Sourceforge. In
the meantime I would be grateful for any feedback..

http://www.willmcgugan.com/chess.zip

I am aware of the chess module by Erik Max Francis. It may have been
more sensible to work on his version, but I did this mainly for the fun
of it. I wrote a chess game in C++ a while back
(http://www.chesscommander.com) and I thought it would be interesting to
re-implement the chess library part in Python.

Regards,

Will McGugan

--
http://www.willmcgugan.com
Received on Sat Oct 15 03:56:52 2005