Until today it was not possible to often encounter overload, I ask for help with this.
There is a method:
public char GetFigureAt(int x, int y) { Square square = new Square(x ,y); Figure f = board.GetFigureAt(square); return f == Figure.none ? '.' : (char)f; }
For two coordinates it works without problems, but when I need to enter only one value, an error appears that I need to specify 2 parameters and not 1.
string figure = chess.GetFigureAt(from).ToString();
Actually the question is how to overload correctly this method that would work with 1 value?