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