A.27. Structures

Structures and advanced data types

A.27.1. Games_Chess

Repository: PEAR - License: PHP License - By Greg Beaver (lead)

Construct and validate a logical chess game, does not display

A.27.1.1. Description

The logic of handling a chessboard and parsing standard FEN (Farnsworth-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 ...

Get PHP 5 Power Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.