示例#1
0
 public bool IsPieceSameColor(Coordinates position, PlayerColor color)
 {
     return(GameBoard[position.Row, position.Column]?.Owner.Color == color);
 }
示例#2
0
 public void SetPiece(Coordinates position, Piece piece = null)
 {
     GameBoard[position.Row, position.Column] = piece;
 }
示例#3
0
 public bool IsPositionEmpty(Coordinates position)
 {
     return(GameBoard[position.Row, position.Column] == null);
 }
示例#4
0
 public Piece GetPiece(Coordinates position)
 {
     return(GameBoard[position.Row, position.Column]);
 }