Example #1
0
        public static int GetExpectedArgCount(AppToUCICommand command)
        {
            var countStr = command.AsString(ArgumentCountFormat);

            return(int.Parse(countStr));
        }
Example #2
0
        public static string[] GetExpectedResponse(AppToUCICommand command)
        {
            var str = command.AsString(UCIResponseFormat);

            return(str.Split('|'));
        }
Example #3
0
        //public static UCIToAppCommand GetExpectedResponseFlags(AppToUCICommand command)
        //{
        //    return Enum.Parse(typeof(UCIToAppCommand), command.AsString(uciResponseFlagsFormat));
        //}

        public static bool GetExactMatch(AppToUCICommand command)
        {
            return(bool.Parse(command.AsString(UCIExactMatchFormat)));
        }
Example #4
0
 public static string GetCommandString(AppToUCICommand command)
 {
     return(command.AsString(UciCommandFormat));
 }