mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Small code style reformatting
No functional change.
This commit is contained in:
parent
6b82a234d0
commit
68171ecaca
2 changed files with 4 additions and 5 deletions
|
@ -254,9 +254,8 @@ namespace {
|
||||||
void init_magics(Bitboard table[], Bitboard* attacks[], Bitboard magics[],
|
void init_magics(Bitboard table[], Bitboard* attacks[], Bitboard magics[],
|
||||||
Bitboard masks[], unsigned shifts[], Square deltas[], Fn index) {
|
Bitboard masks[], unsigned shifts[], Square deltas[], Fn index) {
|
||||||
|
|
||||||
int MagicBoosters[][8] = { { 969, 1976, 2850, 542, 2069, 2852, 1708, 164 },
|
int MagicBoosters[][RANK_NB] = { { 969, 1976, 2850, 542, 2069, 2852, 1708, 164 },
|
||||||
{ 3101, 552, 3555, 926, 834, 26, 2131, 1117 } };
|
{ 3101, 552, 3555, 926, 834, 26, 2131, 1117 } };
|
||||||
|
|
||||||
RKISS rk;
|
RKISS rk;
|
||||||
Bitboard occupancy[4096], reference[4096], edges, b;
|
Bitboard occupancy[4096], reference[4096], edges, b;
|
||||||
int i, size, booster;
|
int i, size, booster;
|
||||||
|
|
|
@ -102,7 +102,7 @@ namespace {
|
||||||
const Square* pl = pos.list<PAWN>(Us);
|
const Square* pl = pos.list<PAWN>(Us);
|
||||||
const Bitboard* pawnAttacksBB = StepAttacksBB[make_piece(Us, PAWN)];
|
const Bitboard* pawnAttacksBB = StepAttacksBB[make_piece(Us, PAWN)];
|
||||||
|
|
||||||
Bitboard ourPawns = pos.pieces(Us, PAWN);
|
Bitboard ourPawns = pos.pieces(Us , PAWN);
|
||||||
Bitboard theirPawns = pos.pieces(Them, PAWN);
|
Bitboard theirPawns = pos.pieces(Them, PAWN);
|
||||||
|
|
||||||
e->passedPawns[Us] = e->candidatePawns[Us] = 0;
|
e->passedPawns[Us] = e->candidatePawns[Us] = 0;
|
||||||
|
@ -193,7 +193,7 @@ namespace {
|
||||||
value += Connected[f][relative_rank(Us, s)];
|
value += Connected[f][relative_rank(Us, s)];
|
||||||
|
|
||||||
if (lever)
|
if (lever)
|
||||||
value += Lever[relative_rank(Us, s)];
|
value += Lever[relative_rank(Us, s)];
|
||||||
|
|
||||||
if (candidate)
|
if (candidate)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue