public MainWindow() { InitializeComponent(); this.gameProvider = new GameProvider(new MovesArrayAllocator()); this.chessboardControl.SetupGameProvider(gameProvider); this.worker = new BackgroundWorker(); this.redoMoves = new List <MoveWithDecision>(); this.worker.DoWork += new DoWorkEventHandler(worker_DoWork); this.worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted); this.maxdepth = 5; this.debutsGraph = DebutsReader.ReadDebuts("simple_debut_moves", PlayerPosition.Down); }
public ChessSolver(DebutGraph graph) { this.debutGraph = graph; }