public bool IsPieceSameColor(Coordinates position, PlayerColor color) { return(GameBoard[position.Row, position.Column]?.Owner.Color == color); }
public void SetPiece(Coordinates position, Piece piece = null) { GameBoard[position.Row, position.Column] = piece; }
public bool IsPositionEmpty(Coordinates position) { return(GameBoard[position.Row, position.Column] == null); }
public Piece GetPiece(Coordinates position) { return(GameBoard[position.Row, position.Column]); }