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