Ejemplo n.º 1
0
 public void GetNextActionTest()
 {
     Assert.IsTrue(testGR.GetNextAction() == testAction1);
     Assert.IsTrue(testGR.GetNextAction() == testAction2);
     Assert.IsNull(testGR.GetNextAction());
     testGR.StartOver();
 }
Ejemplo n.º 2
0
        public List <string> GetGameReplay(int roomId, int gameNum, int userId)
        {
            GameReplay    replay  = _replayManager.GetGameReplayForUser(roomId, gameNum, userId);
            List <string> replays = new List <string>();

            if (replay == null)
            {
                return(replays);
            }
            TexasHoldem.Logic.Actions.Action action = replay.GetNextAction();
            while (action != null)
            {
                replays.Add(action.ToString());
                action = replay.GetNextAction();
            }
            return(replays);
        }