Mainly to sync mine and official repo.
No functional change.
#define BITBOARD_H_INCLUDED
#include <string>
+
#include "types.h"
namespace Bitboards {
& ei.attackedBy[Them][PAWN]
& (ei.attackedBy[Us][KNIGHT] | ei.attackedBy[Us][BISHOP]);
- if(protectedEnemies)
+ if (protectedEnemies)
score += Threat[Minor][type_of(pos.piece_on(lsb(protectedEnemies)))];
// Enemies not defended by a pawn and under our attack
mbonus += k * rr, ebonus += k * rr;
}
- else if(pos.pieces(Us) & blockSq)
+ else if (pos.pieces(Us) & blockSq)
mbonus += rr * 3 + r * 2 + 3, ebonus += rr + r * 2;
} // rr != 0
#include "bitcount.h"
#include "movegen.h"
+#include "notation.h"
#include "position.h"
#include "psqtab.h"
#include "rkiss.h"
#include "thread.h"
#include "tt.h"
-#include "notation.h"
using std::string;
{
double pvRed = 0.00 + log(double(hd)) * log(double(mc)) / 3.00;
double nonPVRed = 0.33 + log(double(hd)) * log(double(mc)) / 2.25;
+
Reductions[1][1][hd][mc] = int8_t( pvRed >= 1.0 ? pvRed + 0.5: 0);
Reductions[0][1][hd][mc] = int8_t(nonPVRed >= 1.0 ? nonPVRed + 0.5: 0);
move16 = (uint16_t)m;
value16 = (int16_t)v;
evalValue = (int16_t)ev;
+ genBound8 = (uint8_t)(g | b);
depth8 = (uint8_t)(d - DEPTH_NONE);
- genBound8 = g | (uint8_t)b;
}
uint16_t key16;
const unsigned TTClusterSize = 3;
struct TTCluster {
-
TTEntry entry[TTClusterSize];
char padding[2];
};
void init(OptionsMap& o) {
o["Write Debug Log"] << Option(false, on_logger);
- o["Contempt"] << Option(0, -100, 100);
+ o["Contempt"] << Option(0, -100, 100);
o["Min Split Depth"] << Option(0, 0, 12, on_threads);
o["Threads"] << Option(1, 1, MAX_THREADS, on_threads);
o["Hash"] << Option(16, 1, 1024 * 1024, on_hash_size);