コード例 #1
0
 public override void AfterMove()
 {
     //This is to make sure that pawn cant move double again
     MoveStrategy = new PawnAdapterStrategy(MoveCount, Direction, ChessBoard);
 }
コード例 #2
0
 public Pawn(PieceColor color, ChessBoard board)
     : base(color, board)
 {
     MoveStrategy = new PawnAdapterStrategy(MoveCount, Direction, board);
 }