Пример #1
0
 public MoveOrdering(MoveGenerator moveGenerator, TranspositionTable tt)
 {
     moveScores         = new int[maxMoveCount];
     this.moveGenerator = moveGenerator;
     transpositionTable = tt;
     invalidMove        = Move.InvalidMove;
 }
Пример #2
0
 public Search(Board board, AISettings settings)
 {
     this.board    = board;
     this.settings = settings;
     evaluation    = new Evaluation();
     moveGenerator = new MoveGenerator();
     tt            = new TranspositionTable(board, transpositionTableSize);
     moveOrdering  = new MoveOrdering(moveGenerator, tt);
     invalidMove   = Move.InvalidMove;
     var s = TranspositionTable.Entry.GetSize();
     //Debug.Log ("TT entry: " + s + " bytes. Total size: " + ((s * transpositionTableSize) / 1000f) + " mb.");
 }