public static string GetParsedCoordinatesA(Adornments move_or_adornment, bool flipped, int size) { int row = move_or_adornment.Row; int col = move_or_adornment.Column; if (flipped) { // C# fails mutually distinct types on char and int, and string constructor lame. // Must cons array so that string constructor doesn't interpret second char as count. return(new string(new char[] { letters[size + 1 - col], letters[size + 1 - row] })); } else { return(new string(new char[] { letters[col], letters[row] })); } }
public void RemoveAdornment(Adornments a) { this.Adornments.Remove(a); }
public Adornments AddAdornment(Adornments a) { this.Adornments.Add(a); return(a); }