コード例 #1
0
 public Evaluation(int playerCount, Scenario[] scenarios)
 {
     PlayerCount = playerCount;
     Scenarios = scenarios;
     TotalBoardsEvaluated = Scenarios.Sum(o => o.Count);
     CalculateOdds();
 }
コード例 #2
0
 public EvaluationPocket(string[][] pocketsStr, string[] boardCardsStr, string[] deadCardsStr, Scenario[] scenarios)
     : base(pocketsStr.GetLength(0), scenarios)
 {
     PocketsStr = pocketsStr;
     BoardCardsStr = boardCardsStr;
     DeadCardsStr = deadCardsStr;
 }
コード例 #3
0
 public Scenario[] CollectScenarios()
 {
     // collect leafs
     List<ScenarioNode> leafs = CollectLeafs();
     Scenario[] scenarios = new Scenario[leafs.Count];
     for (int i = 0; i < leafs.Count; i++)
     {
         scenarios[i] = new Scenario { Places = leafs[i].Places, Count = leafs[i].Count };
     }
     return scenarios;
 }