File: Chess.php
Source Location: /Games_Chess-1.0.1/Chess.php
Classes:
Games_Chess
ABSTRACT parent class - use Games_Chess_Standard for a typical chess game
Page Details:
The Games_Chess Package
The logic of handling a chessboard and parsing standard FEN (Forsyth-Edwards Notation) for describing a position as well as SAN (Standard Algebraic Notation) for describing individual moves is handled. This class can be used as a backend driver for playing chess, or for validating and/or creating PGN files using the File_ChessPGN package. Although this package is alpha, it is fully unit-tested. The code works, but the API is fluid, and may change dramatically as it is put into use and better ways are found to use it. When the API stabilizes, the stability will increase. To learn how to play chess, there are many sites online, try searching for "chess." To play online, I use the Internet Chess Club at http://www.chessclub.com as CelloJi, look me up sometime :). Don't worry, I'm not very good.
GAMES_CHESS_CASTLE [line 50]
GAMES_CHESS_ERROR_CANT_CAPTURE_OWN [line 146]
GAMES_CHESS_ERROR_CANT_CK [line 118]
GAMES_CHESS_ERROR_CANT_CQ [line 126]
GAMES_CHESS_ERROR_CANT_MOVE_THAT_WAY [line 159]
GAMES_CHESS_ERROR_CANT_PLACE_18 [line 227]
GAMES_CHESS_ERROR_CASTLE_WOULD_CHECK [line 134]
GAMES_CHESS_ERROR_CK_PIECES_IN_WAY [line 122]
GAMES_CHESS_ERROR_CQ_PIECES_IN_WAY [line 130]
GAMES_CHESS_ERROR_DUPESQUARE [line 173]
GAMES_CHESS_ERROR_EMPTY_FEN [line 81]
GAMES_CHESS_ERROR_FEN_CASTLETOOLONG [line 94]
GAMES_CHESS_ERROR_FEN_CASTLEWRONG [line 98]
GAMES_CHESS_ERROR_FEN_COUNT [line 76]
GAMES_CHESS_ERROR_FEN_INVALIDPIECE [line 177]
GAMES_CHESS_ERROR_FEN_INVALID_EP [line 102]
GAMES_CHESS_ERROR_FEN_INVALID_MOVENUMBER [line 110]
GAMES_CHESS_ERROR_FEN_INVALID_PLY [line 106]
GAMES_CHESS_ERROR_FEN_MULTIPIECE [line 169]
GAMES_CHESS_ERROR_FEN_TOMOVEWRONG [line 90]
GAMES_CHESS_ERROR_FEN_TOOLITTLE [line 181]
GAMES_CHESS_ERROR_FEN_TOOMUCH [line 86]
GAMES_CHESS_ERROR_INVALID_COLOR [line 185]
GAMES_CHESS_ERROR_INVALID_PIECE [line 195]
GAMES_CHESS_ERROR_INVALID_PROMOTE [line 200]
GAMES_CHESS_ERROR_INVALID_SAN [line 71]
GAMES_CHESS_ERROR_INVALID_SQUARE [line 190]
GAMES_CHESS_ERROR_IN_CHECK [line 114]
GAMES_CHESS_ERROR_MOVE_MUST_CAPTURE [line 215]
GAMES_CHESS_ERROR_MOVE_WOULD_CHECK [line 138]
GAMES_CHESS_ERROR_MULTIPIECE [line 164]
GAMES_CHESS_ERROR_NOPIECES_TOPLACE [line 219]
GAMES_CHESS_ERROR_NOPIECE_CANDOTHAT [line 210]
GAMES_CHESS_ERROR_NO_PIECE [line 150]
GAMES_CHESS_ERROR_PIECEINTHEWAY [line 223]
GAMES_CHESS_ERROR_STILL_IN_CHECK [line 142]
GAMES_CHESS_ERROR_TOO_AMBIGUOUS [line 205]
GAMES_CHESS_ERROR_WRONG_COLOR [line 154]
GAMES_CHESS_PAWNMOVE [line 54]
GAMES_CHESS_PIECEMOVE [line 58]
GAMES_CHESS_PIECEPLACEMENT [line 62]
Documentation generated on Mon, 11 Mar 2019 15:05:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|