示例#1
0
 public void Remove(ChessBoard board)
 {
     board.Pieces.Remove(this);
 }
示例#2
0
 internal void Move(ChessPosition target, ChessBoard chessBoard)
 {
     CurrentPosition = target;
 }
示例#3
0
 protected bool CheckAndInsert(int xOff, int yOff, ChessBoard board) =>
 CheckAndInsert(new ChessPosition((byte)(CurrentPosition.X + xOff), (byte)(CurrentPosition.Y + yOff)), board);
示例#4
0
 public virtual void RecalculateValidMoves(ChessBoard board)
 {
     ValidMoves.Clear();
 }