public Evaluation(int playerCount, Scenario[] scenarios) { PlayerCount = playerCount; Scenarios = scenarios; TotalBoardsEvaluated = Scenarios.Sum(o => o.Count); CalculateOdds(); }
public EvaluationPocket(string[][] pocketsStr, string[] boardCardsStr, string[] deadCardsStr, Scenario[] scenarios) : base(pocketsStr.GetLength(0), scenarios) { PocketsStr = pocketsStr; BoardCardsStr = boardCardsStr; DeadCardsStr = deadCardsStr; }
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; }