public void GetGameReplayForUserTest() { Assert.IsNotNull(_testRM.GetGameReplayForUser(1, 1, 1)); Assert.IsNull(_testRM.GetGameReplayForUser(3, 3, 1)); Assert.IsNull(_testRM.GetGameReplayForUser(1, 3, 1)); Assert.IsNull(_testRM.GetGameReplayForUser(3, 1, 1)); }
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); }
public GameReplay GetGameReplayForUser(int gameRoomID, int gameNumber, int userID) { return(_RM.GetGameReplayForUser(gameRoomID, gameNumber, userID)); }