Module: chess

Table of Contents

Module: chess | chess.py
--- | ---
A chess adjudicator, which understands several standard notations for moves.
Imported modules |
--- | ---
import string
Classes |
AlgebraicLoc | A Loc expressed using algebraic notation.
AmbiguousMoveError | An ambiguous move was attempted.
Bishop | The bishop.
Board | Representation of a chessboard.
ConsistencyError | An internal inconsistency check failed (internal error).
EmptySquareError | A move was attempted from an empty square.
Error | The base error class. All chess-related exceptions derive from
FileFormatError | A save file format was not recognized.
Game | Encapsulates a game.
IllegalMoveError | An illegal move was attempted.
King | The king. Supports castling.
Knight | The knight.
Loc | A raw location on the board, represented as a file (x) and a rank (y)
Move | Encapsulates a single move.
NoMatchesError | A search for a piece resulted in no matches.
ParseError | Unrecognized command.
Pawn | The pawn. Supports promotion, en passant captures.
Piece | A piece, on or off the board.
Queen | The queen.
Rook | The rook.

Table of Contents

This document was automatically generated on Thu Jul 25 17:22:53 2002 by HappyDoc version 2.0.1