The king. Supports castling.
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"
|
|
|