Esempio n. 1
0
        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] }));
            }
        }
Esempio n. 2
0
 public void RemoveAdornment(Adornments a)
 {
     this.Adornments.Remove(a);
 }
Esempio n. 3
0
 public Adornments AddAdornment(Adornments a)
 {
     this.Adornments.Add(a);
     return(a);
 }