addPiece [line 1028]
truePEAR_Error addPiece(
WB
$color, KQRNPB
$type, string
$square)


Add a piece to the chessboard
Overrides
Games_Chess_Standard::addPiece() (Add a piece to the chessboard)
Parameters:
blankBoard [line 108]
in50MoveDraw [line 1196]
50 move draw is not allowed in crazyhouse
Overrides
Games_Chess::in50MoveDraw() (Determine whether any pawn move or capture has occurred in the past 50 moves)
inBasicDraw [line 1178]
Basic draw is impossible in crazyhouse, because it is always possible
to place another piece
Overrides
Games_Chess::inBasicDraw() (Determine the presence of a basic draw as defined by FIDE rules)
inCheck [line 975]
stringarrayfalse inCheck(
WB
$color)


Determine whether one side's king is in check by the other side's pieces
Overrides
Games_Chess_Standard::inCheck() (Determine whether one side's king is in check by the other side's pieces)
Parameters:
inRepetitionDraw [line 1187]
false inRepetitionDraw(
)


Repetition draw is not allowed in crazyhouse
Overrides
Games_Chess::inRepetitionDraw() (Determine whether draw by repetition has happened)
isBishop [line 735]
boolean isBishop(
string
$piece)


Determine whether a piece name is a bishop
This does NOT take an algebraic square as the argument, but the contents of _board[algebraic square]
Overrides
Games_Chess_Standard::isBishop() (Determine whether a piece name is a bishop)
Parameters:
isKing [line 700]
boolean isKing(
string
$piecename)


Determine whether a piece name is a king
This does NOT take an algebraic square as the argument, but the contents of _board[algebraic square]
Overrides
Games_Chess_Standard::isKing() (Determine whether a piece name is a king)
Parameters:
isPawn [line 771]
boolean isPawn(
string
$piece)


Determine whether a piece name is a pawn
This does NOT take an algebraic square as the argument, but the contents of _board[algebraic square]
Overrides
Games_Chess_Standard::isPawn() (Determine whether a piece name is a pawn)
Parameters:
isRook [line 753]
boolean isRook(
string
$piece)


Determine whether a piece name is a rook
This does NOT take an algebraic square as the argument, but the contents of _board[algebraic square]
Overrides
Games_Chess_Standard::isRook() (Determine whether a piece name is a rook)
Parameters:
moveSAN [line 288]
truePEAR_Error moveSAN(
string
$move)


Make a move from a Standard Algebraic Notation (SAN) format
SAN is just a normal chess move like Na4, instead of the English Notation, like NR4
Overrides
Games_Chess::moveSAN() (Make a move from a Standard Algebraic Notation (SAN) format)
Parameters:
toArray [line 995]
_getAllPieceLocations [line 907]
void _getAllPieceLocations(
WB
$color)


Get the location of every piece on the board of color $color
Overrides
Games_Chess_Standard::_getAllPieceLocations() (Get the location of every piece on the board of color $color)
Parameters:
_getAllPieceSquares [line 434]
array _getAllPieceSquares(
KBNRWP
$piece, WB
$color, [string
$exclude = null])


Retrieve the locations of all pieces of the same type as $piece
Overrides
Games_Chess_Standard::_getAllPieceSquares() (Retrieve the locations of all pieces of the same type as $piece)
Parameters:
_getKing [line 638]
falsestring _getKing(
[
$color = null])


Get the location of the king
assumes valid color input
Overrides
Games_Chess_Standard::_getKing() (Get the location of the king)
Parameters:
_getPiece [line 662]
stringarray _getPiece(
string
$piece)


Get the location of a piece
This does NOT take an algebraic square as the argument, but the contents of _board[algebraic square]
Overrides
Games_Chess_Standard::_getPiece() (Get the location of a piece)
Parameters:
_getPieceTypes [line 862]
Get a list of all pieces on the board organized by the type of piece, and the color of the square the piece is on.
Used to determine basic draw conditions
Overrides
Games_Chess_Standard::_getPieceTypes() (Get a list of all pieces on the board organized by the type of piece, and the color of the square the piece is on.)
_getPossibleChecks [line 887]
array _getPossibleChecks(
WB
$color)


Used to determine check
Retrieve all of the moves of the pieces matching the color passed in.
Overrides
Games_Chess_Standard::_getPossibleChecks() (Used to determine check)
Parameters:
_isKnight [line 681]
boolean _isKnight(
string
$piece)


Determine whether a piece name is a knight
This does NOT take an algebraic square as the argument, but the contents of _board[algebraic square]
Overrides
Games_Chess_Standard::_isKnight() (Determine whether a piece name is a knight)
Parameters:
_isQueen [line 717]
boolean _isQueen(
string
$piece)


Determine whether a piece name is a queen
This does NOT take an algebraic square as the argument, but the contents of _board[algebraic square]
Overrides
Games_Chess_Standard::_isQueen() (Determine whether a piece name is a queen)
Parameters:
_renderFen [line 927]
Render the current board position into ForsythEdwards Notation
This method only renders the board contents, not the castling and other information
Overrides
Games_Chess_Standard::_renderFen() (Render the current board position into ForsythEdwards Notation)
_setupStartingPosition [line 169]
_squareToPiece [line 409]
falsearray _squareToPiece(
string
$square)


Translate an algebraic coordinate into the color and name of a piece,
or false if no piece is on that square
Overrides
Games_Chess_Standard::_squareToPiece() (Translate an algebraic coordinate into the color and name of a piece,)
Parameters: