mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-17 19:22:18 +01:00
DroidFish: Updated stockfish to version 2.2.2.
This commit is contained in:
@@ -19,14 +19,13 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "bitcount.h"
|
||||
#include "endgame.h"
|
||||
#include "pawns.h"
|
||||
|
||||
using std::string;
|
||||
using std::transform;
|
||||
using namespace std;
|
||||
|
||||
extern uint32_t probe_kpk_bitbase(Square wksq, Square wpsq, Square bksq, Color stm);
|
||||
|
||||
@@ -207,10 +206,10 @@ Value Endgame<KPK>::operator()(const Position& pos) const {
|
||||
}
|
||||
else
|
||||
{
|
||||
wksq = flip(pos.king_square(BLACK));
|
||||
bksq = flip(pos.king_square(WHITE));
|
||||
wpsq = flip(pos.piece_list(BLACK, PAWN)[0]);
|
||||
stm = flip(pos.side_to_move());
|
||||
wksq = ~pos.king_square(BLACK);
|
||||
bksq = ~pos.king_square(WHITE);
|
||||
wpsq = ~pos.piece_list(BLACK, PAWN)[0];
|
||||
stm = ~pos.side_to_move();
|
||||
}
|
||||
|
||||
if (file_of(wpsq) >= FILE_E)
|
||||
@@ -253,10 +252,10 @@ Value Endgame<KRKP>::operator()(const Position& pos) const {
|
||||
|
||||
if (strongerSide == BLACK)
|
||||
{
|
||||
wksq = flip(wksq);
|
||||
wrsq = flip(wrsq);
|
||||
bksq = flip(bksq);
|
||||
bpsq = flip(bpsq);
|
||||
wksq = ~wksq;
|
||||
wrsq = ~wrsq;
|
||||
bksq = ~bksq;
|
||||
bpsq = ~bpsq;
|
||||
}
|
||||
|
||||
Square queeningSq = make_square(file_of(bpsq), RANK_1);
|
||||
@@ -493,11 +492,11 @@ ScaleFactor Endgame<KRPKR>::operator()(const Position& pos) const {
|
||||
// pawn is on the left half of the board.
|
||||
if (strongerSide == BLACK)
|
||||
{
|
||||
wksq = flip(wksq);
|
||||
wrsq = flip(wrsq);
|
||||
wpsq = flip(wpsq);
|
||||
bksq = flip(bksq);
|
||||
brsq = flip(brsq);
|
||||
wksq = ~wksq;
|
||||
wrsq = ~wrsq;
|
||||
wpsq = ~wpsq;
|
||||
bksq = ~bksq;
|
||||
brsq = ~brsq;
|
||||
}
|
||||
if (file_of(wpsq) > FILE_D)
|
||||
{
|
||||
@@ -869,10 +868,10 @@ ScaleFactor Endgame<KPKP>::operator()(const Position& pos) const {
|
||||
|
||||
if (strongerSide == BLACK)
|
||||
{
|
||||
wksq = flip(wksq);
|
||||
bksq = flip(bksq);
|
||||
wpsq = flip(wpsq);
|
||||
stm = flip(stm);
|
||||
wksq = ~wksq;
|
||||
bksq = ~bksq;
|
||||
wpsq = ~wpsq;
|
||||
stm = ~stm;
|
||||
}
|
||||
|
||||
if (file_of(wpsq) >= FILE_E)
|
||||
|
||||
Reference in New Issue
Block a user