Permalink
Browse files

Merge branch 'razor0' into develop

* PRE-42

fix razor code

bench: 7147371
  • Loading branch information...
elcabesa committed Jan 7, 2019
2 parents 96fb64a + 56b715a commit 616f8f955bcd69a7ba4763b0f07b72c3cc6b5b35
Showing with 3 additions and 4 deletions.
  1. +2 −3 search.cpp
  2. +1 −1 version.h
@@ -1127,12 +1127,11 @@ template<Search::impl::nodeType type> Score Search::impl::alphaBeta(unsigned int
&& ( !ttMove || type == ALL_NODE)
)
{
Score ralpha = alpha - razorMargin(depth,type==CUT_NODE);
assert(ralpha>=-SCORE_INFINITE);

PVline childPV;
Score v = qsearch<CUT_NODE>(ply,0, ralpha, ralpha+1, childPV);
if (v <= ralpha)
Score v = qsearch<CUT_NODE>(ply,0, alpha, alpha+1, childPV);
if (v <= alpha)
{
return v;
}
@@ -22,6 +22,6 @@

const std::string programName = "Vajolet2";
const std::string version = "2.7.0";
const std::string preRelease = "-PRE-41";
const std::string preRelease = "-PRE-42";

#endif

0 comments on commit 616f8f9

Please sign in to comment.