Merge official-stockfish/master
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 19 Sep 2020 11:41:08 +0000 (13:41 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 19 Sep 2020 11:41:08 +0000 (13:41 +0200)
bench: 5113210

1  2 
src/Makefile
src/evaluate.cpp
src/search.cpp
src/timeman.cpp
src/ucioption.cpp

diff --cc src/Makefile
@@@ -180,12 -165,9 +183,12 @@@ endi
  ifeq ($(COMP),gcc)
        comp=gcc
        CXX=g++
 -      CXXFLAGS += -pedantic -Wextra -Wshadow
 +      CXXFLAGS += -Wextra -Wshadow
 +      ifeq ($(largeboards),no)
 +              CXXFLAGS += -pedantic
 +      endif
  
-       ifeq ($(ARCH),armv7)
+       ifeq ($(ARCH),$(filter $(ARCH),armv7 armv8))
                ifeq ($(OS),Android)
                        CXXFLAGS += -m$(bits)
                        LDFLAGS += -m$(bits)
@@@ -436,8 -372,12 +437,12 @@@ namespace 
          {
              // Penalty if any relative pin or discovered attack against the queen
              Bitboard queenPinners;
 -            if (pos.slider_blockers(pos.pieces(Them, ROOK, BISHOP), s, queenPinners))
 +            if (pos.slider_blockers(pos.pieces(Them, ROOK, BISHOP), s, queenPinners, Them))
                  score -= WeakQueen;
+             // Bonus for queen on weak square in enemy camp
+             if (relative_rank(Us, s) > RANK_4 && (~pe->pawn_attacks_span(Them) & s))
+                 score += QueenInfiltration;    
          }
      }
      if (T)
diff --cc src/search.cpp
Simple merge
diff --cc src/timeman.cpp
@@@ -34,9 -33,8 +34,8 @@@ TimeManagement Time; // Our global tim
  //      1) x basetime (+z increment)
  //      2) x moves in y seconds (+z increment)
  
 -void TimeManagement::init(Search::LimitsType& limits, Color us, int ply) {
 +void TimeManagement::init(const Position& pos, Search::LimitsType& limits, Color us, int ply) {
  
-   TimePoint minThinkingTime = TimePoint(Options["Minimum Thinking Time"]);
    TimePoint moveOverhead    = TimePoint(Options["Move Overhead"]);
    TimePoint slowMover       = TimePoint(Options["Slow Mover"]);
    TimePoint npmsec          = TimePoint(Options["nodestime"]);
@@@ -147,9 -66,8 +147,8 @@@ void init(OptionsMap& o) 
    o["Clear Hash"]            << Option(on_clear_hash);
    o["Ponder"]                << Option(false);
    o["MultiPV"]               << Option(1, 1, 500);
 -  o["Skill Level"]           << Option(20, 0, 20);
 +  o["Skill Level"]           << Option(20, -20, 20);
    o["Move Overhead"]         << Option(10, 0, 5000);
-   o["Minimum Thinking Time"] << Option( 0, 0, 5000);
    o["Slow Mover"]            << Option(100, 10, 1000);
    o["nodestime"]             << Option(0, 0, 10000);
    o["UCI_Chess960"]          << Option(false);