Exemple #1
0
 /*
  *
  */
 public bool movePiece(Piece piece, Square square)
 {
     if (!playerMovedPiece)
     {
         playerMovedPiece = piece.moveTo(square);
         return playerMovedPiece;
     }
     if (CurrentPlayer.Baricade != null && !piece.pawnMayMoveTrough())
     {
         return piece.moveTo(square);
     }
     return false;
 }