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