Skip to content

Commit

Permalink
back to old
Browse files Browse the repository at this point in the history
  • Loading branch information
tryingsomestuff committed Nov 5, 2024
1 parent dbf537f commit 3ae1dba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/score.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct Position;
}
#else
[[nodiscard]] constexpr float fiftyMoveRuleScaling(const uint8_t fifty){
return 1.f - std::max(0, fifty-30) / 100.f;
return 1.f - /*std::max(0, fifty-30)*/ fifty / 100.f;
}
#endif

Expand Down
5 changes: 3 additions & 2 deletions Source/searcherPVS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1086,12 +1086,12 @@ ScoreType Searcher::pvs(ScoreType alpha,
std::vector<MiniMove> skip{e.m};
const ScoreType score = pvs<false>(betaC - 1, betaC, p, depth / 2, height, sePV, seSeldepth, extensions, pvsData.isInCheck, pvsData.cutNode, &skip);
if (stopFlag) return STOPSCORE;
if (score < betaC && extensions <= 6) { // TT move is singular
if (score < betaC /*&& extensions <= 6*/) { // TT move is singular
stats.incr(Stats::sid_singularExtension);
pvsData.ttMoveSingularExt=true;
++extension;
// TT move is "very singular" and depth is small : kind of single reply extension
if (!pvsData.pvnode && score < betaC - 4 * depth) {
if (/*!pvsData.pvnode &&*/ score < betaC - 4 * depth && extensions <= 6) {
stats.incr(Stats::sid_singularExtension2);
++extension;
/*
Expand Down Expand Up @@ -1459,6 +1459,7 @@ ScoreType Searcher::pvs(ScoreType alpha,
// check for draw and check mate
if (pvsData.validMoveCount == 0){
return !pvsData.withoutSkipMove ? alpha : pvsData.isInCheck ? matedScore(height) : drawScore(p, height);
//return (pvsData.isInCheck || !pvsData.withoutSkipMove) ? matedScore(height) : drawScore(p, height);
}
// post move loop version
else if (is50moves(p,false)){
Expand Down

0 comments on commit 3ae1dba

Please sign in to comment.