Ce fichier liste l'état d'avancement des fonctionnalités implémentées dans le cadre du TP de Programmation Orientée Objet avancée en PHP.
-
✅
Position- ✅
__construct() - ✅
getRow() - ✅
getColumn() - ✅
equals() - ✅
toKey() - ✅
fromKey()
- ✅
-
✅
Move- ✅
__construct() - ✅
getFrom() - ✅
getTo()
- ✅
-
✅
Board- ✅
placePiece() - ✅
getPieceAt() - ✅
hasPieceAt() - ✅
removePieceAt() - ✅
movePiece() - ✅
isPathClear() - ✅
getPieces() - ✅
getKingPosition() - ✅
render()
- ✅
-
✅
Game- ✅
__construct() - ✅
start() - ✅
getBoard() - ✅
getCurrentPlayer() - ✅
play() - ✅
isCheck() - ✅
setupPieces() - ✅
switchPlayer()
- ✅
-
✅
Piece- ✅
__construct() - ✅
getColor() - ✅
getPosition() - ✅
setPosition() - ✅
getType() - ✅
render() - ✅
canMove() - ✅
isValidMovementShape() - ✅
canCapture()
- ✅
-
✅
King- ✅
isValidMovementShape()
- ✅
-
✅
Queen- ✅
isValidMovementShape()
- ✅
-
✅
Rook- ✅
isValidMovementShape()
- ✅
-
✅
Bishop- ✅
isValidMovementShape()
- ✅
-
✅
Knight- ✅
isValidMovementShape()
- ✅
-
✅
Pawn- ✅
isValidMovementShape()
- ✅
- ✅
PieceFactory- ✅
create()
- ✅
-
✅
Renderable- ✅
render()
- ✅
-
✅
PieceColor- ✅
WHITE - ✅
BLACK - ✅
opposite()
- ✅
-
✅
PieceType- ✅
KING - ✅
QUEEN - ✅
ROOK - ✅
BISHOP - ✅
KNIGHT - ✅
PAWN
- ✅
- ✅
ChessException - ✅
InvalidMoveException - ✅
NoPieceException - ✅
WrongTurnException - ✅
OccupiedByAllyException
- ❌ Roque
- ✅ Promotion du pion
- ❌ Prise en passant
- ✅ Interdiction de mettre son propre roi en échec
- ❌ Échec et mat
- ❌ Pat
- ❌ Historique complet des coups
- ❌ Tests automatisés
- ❌ Autre bonus :
aucun