예제 #1
0
파일: Game.cs 프로젝트: spboom/Baricade
 /*
  *
  */
 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;
 }