|
pygame is
pygame.org is
|
ChessBoard
ChessBoard - 2.01John Eriksson (wmjoers)Tags:DescriptionChessBoard is a Python implementation of the FIDE laws of chess. The main goal is to implement all applicable rules in a simple, straightforward way. The intention is not to be fast but to be easy to understand and to be complete. Many other implementation has known problems with castling, stalemate or other more or less special rules.
Features:
- The moves of the pieces
- Castling
- En passant
- Check detection
- Checkmate detection
- Stalemate detection
- Draw by the fifty moves rule detection
- Draw by the three repetitions rule detection
- Get valid locations support
- Imoprt and export of Forsyth-Edwards Notation strings.
- Add text moves in the AN, SAN and LAN standards.
- Export moves in the AN, SAN and LAN standards.
- Undo and Redo.
- Goto a specified move.
Unpack the source and start example with "python ChessClient.py"
Keys:
- Left - Undo last move.
- Right - Redo move.
- F - Print current board as FEN.
- A - Print all moves as Algebraic Notation.
- S - Print all moves as Standard Algebraic Notation.
- L - Print all moves as Long Algebraic Notation.
Changes
- Fixed a bug in resetBoard() and setFEN(). The game_result variable wasn't reset.
- Fixed a bug in addTextMove() that caused a crash sometimes when invalid data was entered.
- Added a new reson, AMBIGUOUS_MOVE, for text moves that could be perfomed by two different pieces.
LinksScreenshot click to view original size
Releases
Pygame.org account CommentsIf you wish to leave a comment with your pygame.org account, please sign in first.
|
| spotlight |
|
|
|
| our projects |
|
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
|
|
|
| recent releases |
|
May 22, 2013
May 21, 2013
May 19, 2013
May 18, 2013
May 17, 2013
May 16, 2013
May 15, 2013
May 11, 2013
May 8, 2013
... more!
|
|