Exemplo n.º 1
0
        public static GameRecord Parse(string gameString)
        {
            string     error;
            GameRecord gr = new GameRecord();

            return(GameStringParser.Parse(gameString, out error, gr) ? gr : null);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Parses a string of actions in game string format.
        /// </summary>
        public static bool Parse(string actionString, List <PokerAction> actions, out string error)
        {
            char term;

            error = "";
            return(GameStringParser.ParseActions(actionString, 0, int.MaxValue, actions, ref error, out term));
        }
Exemplo n.º 3
0
        public GameRecord(string gameString)
        {
            string error;

            if (!GameStringParser.Parse(gameString, out error, this))
            {
                throw new ApplicationException("Cannot create GameRecord: " + error);
            }
        }