private void ClearFigure(Figure figure) { Position Position = figure.GettPosition(); Figures[Position.Row, Position.Column] = null; TakenFigures.Add(figure); }
public void MoveFigure(Figure figure) // For intialising the board { Position Position = figure.GettPosition(); Figures[Position.Row, Position.Column] = figure; ; }
public Figure GetFigurePosition(Figure figure) { Position Position = figure.GettPosition(); return(Figures[Position.Row, Position.Column]); }