Exemplo n.º 1
0
        public HandStatResponse Build2PlayerResponse(HeadToHeadStat stat)
        {
            HandStatResponse response = new HandStatResponse();

            if (StartHands[0].HandId == stat.Hand0Id)
            {
                response.NumWins = new List<long>() { stat.Hand0Wins, stat.Hand1Wins };
                response.Chops = new List<long>() { stat.Chops, stat.Chops };
            }
            else
            {
                response.NumWins = new List<long>() { stat.Hand1Wins, stat.Hand0Wins };
                response.Chops = new List<long>() { stat.Chops, stat.Chops };
            }
            return response;
        }
Exemplo n.º 2
0
 public HandStatResponse BuildDefaultResponse(HandStatResponse response)
 {
     return response;
 }
Exemplo n.º 3
0
        public HandStatResponse BuildDefaultResponse(List<long> result)
        {
            var response = new HandStatResponse();
            var found = false;
            for (int i = 0; i < StartHands.Count; i++)
            {
                found = false;
                for (int j = 0; j < OrderedStartHands.Count && !found; j++)
                {
                    if (StartHands[i].HandId == OrderedStartHands[j].HandId)
                    {
                        response.NumWins[i] = result[j];
                        response.Chops[i] = result[j + 10];
                        found = true;
                    }
                }
            }
            response.TotalHands = result[20];

            return response;
        }