Esempio n. 1
0
            public void ProccessNextMoves()
            {
                ISet <int> set = ttt.Free;

                foreach (int move in set)
                {
                    nodes.Add(move, new Node(ttt.GetCopy(), move, height + 1));
                }
            }
Esempio n. 2
0
 public TicTacToeSolver(TicTacToe game)
 {
     this.game = game;
     Root      = new Node(game.GetCopy());
     Console.WriteLine("Buidling Tree");
     Root.ProccessNextMoves();
     Console.WriteLine("Processing Values");
     Root.ProcessVals();
     curr = Root;
 }