Class: King

Table of Contents

Class: King | chess.py
--- | ---
The king. Supports castling.
Base Classes |
--- | ---
Piece
Methods |
--- | ---
castle finalize getCastleRook path validate verify
| castle
    castle (
            self,
            side,
            board,
            )
Do a castle.
| finalize
    finalize (
            self,
            start,
            end,
            board,
            )
Exceptions |
--- | ---
ConsistencyError, "thought we were castling"
| getCastleRook
    getCastleRook (
            self,
            board,
            side,
            )
Return the rook (by looking in the right place for a rook) for a castle of type SIDE on BOARD, or None.
| path
    path (
            self,
            start,
            end,
            )
| validate
    validate (
            self,
            to,
            board,
            )
| verify
    verify (
            self,
            to,
            board,
            )
Exceptions |
--- | ---
ConsistencyError, "thought we were castling"

Table of Contents

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