Пример #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;
        }
Пример #2
0
        public JsonResult SetupStartHands()
        {
            return null;
            var db = new MDUContext();
            var h2h = new HeadToHeadStat();
            //if (db.HeadToHeadStats.ToList().Count() == 812175)
            //    return null;
            //else
            {
                h2h.SetupStartingHands();

            }
            return null;
        }