public void Generate() { Leafs = MinMaxAlgorithm.GetPossible(Head, Player).Select(x => new MinMaxBranch(x, Player * -1, this)).ToList(); foreach (var item in Leafs) { item.Head.ComputeState(); } }
public void ComputerTurn() { var Algo = new MinMaxAlgorithm(State, 2, -1); State = Algo.GetBest(_Brain); }
public override GameState RunOneStep(GameState CurrentStart, double PlayerNumber) { var Algo = new MinMaxAlgorithm(CurrentStart, 1, PlayerNumber); return(Algo.GetBest(Net)); }