Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

TP POO Avancée – Moteur d'Échecs PHP

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.

Classes principales

  • 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()

Pièces

  • Piece

    • __construct()
    • getColor()
    • getPosition()
    • setPosition()
    • getType()
    • render()
    • canMove()
    • isValidMovementShape()
    • canCapture()
  • King

    • isValidMovementShape()
  • Queen

    • isValidMovementShape()
  • Rook

    • isValidMovementShape()
  • Bishop

    • isValidMovementShape()
  • Knight

    • isValidMovementShape()
  • Pawn

    • isValidMovementShape()

Factory

  • PieceFactory
    • create()

Interface / Enums

  • Renderable

    • render()
  • PieceColor

    • WHITE
    • BLACK
    • opposite()
  • PieceType

    • KING
    • QUEEN
    • ROOK
    • BISHOP
    • KNIGHT
    • PAWN

Exceptions

  • ChessException
  • InvalidMoveException
  • NoPieceException
  • WrongTurnException
  • OccupiedByAllyException

Bonus

  • ❌ 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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages