Esempio n. 1
0
 public static bool TryGetMove(string notation, out Move move)
 {
     if (NotationParser.TryParseNotation(notation, out move))
     {
         move._notation = notation;
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 2
0
        public static Move GetMove(string notation)
        {
            Move move;

            if (NotationParser.TryParseNotation(notation, out move))
            {
                move._notation = notation;
                return(move);
            }
            else
            {
                throw new Exception("Bad move notation");
            }
        }