Exemplo n.º 1
0
 public LegalMovement(IChessBoard chessBoard,
                      IMovement movement, ICheckDetector checkDetector)
 {
     this.chessBoard    = chessBoard;
     this.movement      = movement;
     this.checkDetector = checkDetector;
 }
 public GameFinishedDetector(ICheckDetector checkDetector,
                             ILegalMovement legalMovement)
 {
     this.checkDetector = checkDetector;
     this.legalMovement = legalMovement;
 }