Lines Matching refs:depth

620 function StoreHash(value, flags, ply, move, depth) {  argument
622 value += depth;
624 value -= depth;
697 function MovePicker(hashMove, depth, killer1, killer2) { argument
699 this.depth = depth;
822 function AllCutNode(ply, depth, beta, allowNull) { argument
841 if (minEval + depth >= beta)
844 if (maxEval - (depth + 1) < beta)
856 hashValue -= depth;
858 hashValue += depth;
905 var value = -AllCutNode(ply - r, depth + 1, -(beta - 1), false);
921 var movePicker = new MovePicker(hashMove, depth, g_killers[depth][0], g_killers[depth][1]);
967 value = -AllCutNode(reduced, depth + 1, -(beta - 1), true);
973 value = -AllCutNode(plyToSearch, depth + 1, -(beta - 1), true);
994 if (g_killers[depth][0] != currentMove) {
995 g_killers[depth][1] = g_killers[depth][0];
996 g_killers[depth][0] = currentMove;
1000 StoreHash(value, hashflagBeta, ply, currentMove, depth);
1013 return minEval + depth;
1019 StoreHash(realEval, hashflagAlpha, ply, hashMove, depth);
1024 function AlphaBeta(ply, depth, alpha, beta) { argument
1031 if (depth > 0 && IsRepDraw())
1036 alpha = alpha < minEval + depth ? alpha : minEval + depth;
1037 beta = beta > maxEval - (depth + 1) ? beta : maxEval - (depth + 1);
1053 var movePicker = new MovePicker(hashMove, depth, g_killers[depth][0], g_killers[depth][1]);
1074 value = -AllCutNode(plyToSearch, depth + 1, -alpha, true);
1076 value = -AlphaBeta(plyToSearch, depth + 1, -beta, -alpha);
1079 value = -AlphaBeta(plyToSearch, depth + 1, -beta, -alpha);
1100 if (g_killers[depth][0] != currentMove) {
1101 g_killers[depth][1] = g_killers[depth][0];
1102 g_killers[depth][0] = currentMove;
1106 StoreHash(value, hashflagBeta, ply, currentMove, depth);
1124 return minEval + depth;
1130 StoreHash(realEval, hashFlag, ply, hashMove, depth);