Ejemplo n.º 1
0
 public MoveOrdering(MoveGenerator moveGenerator, TranspositionTable tt)
 {
     moveScores         = new int[maxMoveCount];
     this.moveGenerator = moveGenerator;
     transpositionTable = tt;
     invalidMove        = Move.InvalidMove;
 }
Ejemplo n.º 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.");
 }