Ejemplo n.º 1
0
 public Strategist(Chessboard board, Evaluator evaluator, Syzygy tableReader, Stopwatch watch)
 {
     this.board       = board;
     this.evaluator   = evaluator;
     this.ruler       = new Ruler(board);
     this.tableReader = tableReader;
     this.watch       = watch;
 }
Ejemplo n.º 2
0
        static void Init()
        {
            // Dependencies injection
            board = new Chessboard();
            Syzygy    tableReader = new Syzygy(board, "data");
            Evaluator evaluator   = new Evaluator(board);

            watch      = new Stopwatch();
            strategist = new Strategist(board, evaluator, tableReader, watch);
        }