Lines Matching refs:score
114 void QStoreTT(int score, int alpha, int beta, int best)
122 if (score <= alpha)
124 else if(score >= beta)
132 QS_TTable[index].Bound = score;
138 void StoreTT(int score, int alpha, int beta, int best, int threat, int depth)
149 ( ((DP_TTable[index].Type == UPPER) && (score > alpha))
150 || ((score > alpha) && (score < beta))
156 if (score <= alpha)
159 if (score < -INF+500) score = -INF+500;
161 else if(score >= beta)
164 if (score > INF-500) score = INF-500;
171 if (score > (+INF-500))
172 score += ply;
173 else if (score < (-INF+500))
174 score -= ply;
181 DP_TTable[index].Bound = score;
187 if (score <= alpha)
190 if (score < -INF+500) score = -INF+500;
192 else if(score >= beta)
195 if (score > INF-500) score = INF-500;
202 if (score > (+INF-500))
203 score += ply;
204 else if (score < (-INF+500))
205 score -= ply;
212 AS_TTable[index].Bound = score;
220 void LearnStoreTT(int score, unsigned nhash, unsigned hhash, int tomove, int best, int depth)
240 AS_TTable[index].Bound = score;
246 int ProbeTT(int *score, int alpha, int beta, int *best, int *threat, int *donull, int depth)
272 *score = DP_TTable[index].Bound;
274 if (*score > (+INF-500))
275 *score -= ply;
276 else if (*score < (-INF+500))
277 *score += ply;
307 *score = AS_TTable[index].Bound;
309 if (*score > (+INF-500))
310 *score -= ply;
311 else if (*score < (-INF+500))
312 *score += ply;
332 int QProbeTT(int *score, int alpha, int beta, int *best)
347 *score = QS_TTable[index].Bound;