Beispiel #1
0
        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);
        }
Beispiel #2
0
 public ChessSolver(DebutGraph graph)
 {
     this.debutGraph = graph;
 }