mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Trivial code style fixes
Mainly to sync mine and official repo. No functional change.
This commit is contained in:
parent
222f59b9c1
commit
a1b62d68ec
6 changed files with 7 additions and 6 deletions
|
@ -22,6 +22,7 @@
|
|||
#define BITBOARD_H_INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
namespace Bitboards {
|
||||
|
|
|
@ -507,7 +507,7 @@ namespace {
|
|||
& 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
|
||||
|
@ -608,7 +608,7 @@ namespace {
|
|||
|
||||
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
|
||||
|
||||
|
|
|
@ -25,12 +25,12 @@
|
|||
|
||||
#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;
|
||||
|
||||
|
|
|
@ -126,6 +126,7 @@ void Search::init() {
|
|||
{
|
||||
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);
|
||||
|
||||
|
|
3
src/tt.h
3
src/tt.h
|
@ -50,8 +50,8 @@ private:
|
|||
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;
|
||||
|
@ -70,7 +70,6 @@ private:
|
|||
const unsigned TTClusterSize = 3;
|
||||
|
||||
struct TTCluster {
|
||||
|
||||
TTEntry entry[TTClusterSize];
|
||||
char padding[2];
|
||||
};
|
||||
|
|
|
@ -55,7 +55,7 @@ bool CaseInsensitiveLess::operator() (const string& s1, const string& s2) const
|
|||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue