|
| __construct (string $fromFen) |
|
| checkCastle (string $option) |
| Is a castle currently valid (solely based on moved pieces, not the current board)
|
|
| updateForMove (int $movedPiece, int $from) |
| Update the status after a move, and return the new castle status.
|
|
◆ __construct()
MediaWiki\Extension\ChessBrowser\CastlingTracker::__construct |
( |
string | $fromFen | ) |
|
◆ checkCastle()
MediaWiki\Extension\ChessBrowser\CastlingTracker::checkCastle |
( |
string | $option | ) |
|
Is a castle currently valid (solely based on moved pieces, not the current board)
- Parameters
-
- Returns
- bool whether this castle is valid
◆ updateForMove()
MediaWiki\Extension\ChessBrowser\CastlingTracker::updateForMove |
( |
int | $movedPiece, |
|
|
int | $from ) |
Update the status after a move, and return the new castle status.
- Parameters
-
- Returns
- string
The documentation for this class was generated from the following file:
- includes/CastlingTracker.php