Exemple #1
0
 public void RemovePiece(GamePiece piece)                        //Emptey slot
 {
     _gameBoard[piece.Position.Row, piece.Position.Column] = null;
     piece.IsDead = true;
 }
Exemple #2
0
 public void MovePiece(GamePiece piece, Position position)       //Move piece, Make slot emptey after movment, Place piece in new spot
 {
     _gameBoard[piece.Position.Row, piece.Position.Column] = null;
     _gameBoard[position.Row, position.Column]             = piece;
     piece.Position = position;
 }