コード例 #1
0
ファイル: Move.cs プロジェクト: vfridell/HiveLib
 public static bool TryGetMove(string notation, out Move move)
 {
     if (NotationParser.TryParseNotation(notation, out move))
     {
         move._notation = notation;
         return(true);
     }
     else
     {
         return(false);
     }
 }
コード例 #2
0
ファイル: Move.cs プロジェクト: vfridell/HiveLib
        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");
            }
        }