Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
        public void ComputerTurn()
        {
            var Algo = new MinMaxAlgorithm(State, 2, -1);

            State = Algo.GetBest(_Brain);
        }
Exemplo n.º 3
0
        public override GameState RunOneStep(GameState CurrentStart, double PlayerNumber)
        {
            var Algo = new MinMaxAlgorithm(CurrentStart, 1, PlayerNumber);

            return(Algo.GetBest(Net));
        }