public void ProccessNextMoves() { ISet <int> set = ttt.Free; foreach (int move in set) { nodes.Add(move, new Node(ttt.GetCopy(), move, height + 1)); } }
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; }