Lines Matching refs:bestMove

179     if (hashNode != null && hashNode.lock == g_hashKeyHigh && hashNode.bestMove != null) {
180 pvString += PVFromHash(hashNode.bestMove, ply - 1);
209 var bestMove = 0;
234 bestMove = g_hashTable[g_hashKeyLow & g_hashMask].bestMove;
238 finishPlyCallback(bestMove, value, (new Date()).getTime() - g_startTime, i);
243 finishMoveCallback(bestMove, value, (new Date()).getTime() - g_startTime, i - 1);
518 var bestMove = i;
520 if (moveScores[j] > moveScores[bestMove]) {
521 bestMove = j;
526 moves[i] = moves[bestMove];
527 moves[bestMove] = tmpMove;
530 moveScores[i] = moveScores[bestMove];
531 moveScores[bestMove] = tmpScore;
786 var bestMove = this.atMove;
788 if (this.moveScores[j] > this.moveScores[bestMove]) {
789 bestMove = j;
793 if (bestMove != this.atMove) {
795 this.moves[this.atMove] = this.moves[bestMove];
796 this.moves[bestMove] = tmpMove;
799 this.moveScores[this.atMove] = this.moveScores[bestMove];
800 this.moveScores[bestMove] = tmpScore;
850 hashMove = hashNode.bestMove;
1045 hashMove = hashNode.bestMove;
1318 function HashEntry(lock, value, flags, hashDepth, bestMove, globalPly) { argument
1323 this.bestMove = bestMove;
2479 function BuildPVMessage(bestMove, value, timeTaken, ply) { argument
2481 … + totalNodes + " NPS:" + ((totalNodes / (timeTaken / 1000)) | 0) + " " + PVFromHash(bestMove, 15);
2487 function FinishPlyCallback(bestMove, value, timeTaken, ply) { argument
2488 postMessage("pv " + BuildPVMessage(bestMove, value, timeTaken, ply));
2491 function FinishMoveLocalTesting(bestMove, value, timeTaken, ply) { argument
2492 if (bestMove != null) {
2493 MakeMove(bestMove);
2494 postMessage(FormatMove(bestMove));