Skip to content

Commit

Permalink
passed pawn eval +22 ELO
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandotenorio committed May 10, 2019
1 parent de6e723 commit 50a1891
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion BitBoardGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ void BitBoardGen::initSquares(){
SQUARES[i] = ONE << i;
}

U64 BitBoardGen::DISTANCE_SQS[64][64];
int BitBoardGen::DISTANCE_SQS[64][64];
int BitBoardGen::DISTANCE_MAN[64][64];
void BitBoardGen::initDistances(){
for (int i = 0; i < 64; i++){
for (int j = 0; j < 64; j++){
Expand All @@ -490,6 +491,7 @@ void BitBoardGen::initDistances(){

int rd = abs(rj - ri);
int fd = abs(fj - fi);
DISTANCE_MAN[i][j] = rd + fd;
DISTANCE_SQS[i][j] = std::max(rd, fd);
}
}
Expand Down
3 changes: 2 additions & 1 deletion BitBoardGen.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class BitBoardGen{

static U64 FRONT_ATTACK_SPAN[2][64];
static U64 SQUARES[64];
static U64 DISTANCE_SQS[64][64];
static int DISTANCE_SQS[64][64];
static int DISTANCE_MAN[64][64];
static U64 LINES_BB[64][64];
static U64 PAWN_CONNECTED[2][64];
static U64 RANKS_4_5_6_7[2];
Expand Down

0 comments on commit 50a1891

Please sign in to comment.