Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 720 Bytes

history.md

File metadata and controls

17 lines (13 loc) · 720 Bytes

History

The \Pchess\Chess\History class contains instances of \Pchess\Chess\Entry. Each entry is a value object representing a record of a move in \Pchess\Chess\Chess.

The Entry object is composed by the following properties:

Property Type Description
$move Move Move object
$position string a hash of the board
$kings array position of kings
$castling array position of castlings
$epSquare ?int en passant square
$halfMoves int moves for 50-rule
$moveNumber int move number