Skip to content

Commit 3705559

Browse files
Arjun Temurnikarmcostalba
authored andcommitted
Remove RookOn7th and merge values into psqt
Tested in no-regression mode: STC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 55678 W: 9954 L: 9892 D: 35832 LTC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 9238 W: 1448 L: 1311 D: 6479 bench: 7905850
1 parent 6579a65 commit 3705559

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/evaluate.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ namespace {
161161
#undef S
162162

163163
const Score Tempo = make_score(24, 11);
164-
const Score RookOn7th = make_score(11, 20);
165164
const Score RookOnPawn = make_score(10, 28);
166165
const Score RookOpenFile = make_score(43, 21);
167166
const Score RookSemiopenFile = make_score(19, 10);
@@ -360,11 +359,6 @@ namespace {
360359

361360
if (Pt == ROOK)
362361
{
363-
// Rook on 7th rank and enemy king trapped on 8th
364-
if ( relative_rank(Us, s) == RANK_7
365-
&& relative_rank(Us, pos.king_square(Them)) == RANK_8)
366-
score += RookOn7th;
367-
368362
// Rook piece attacking enemy pawns on the same rank/file
369363
if (relative_rank(Us, s) >= RANK_5)
370364
{

src/psqtab.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static const Score PSQT[][SQUARE_NB] = {
6868
S(-22, 3), S( -7, 3), S( -2, 3), S( 2, 3), S( 2, 3), S( -2, 3), S( -7, 3), S(-22, 3),
6969
S(-22, 3), S( -7, 3), S( -2, 3), S( 2, 3), S( 2, 3), S( -2, 3), S( -7, 3), S(-22, 3),
7070
S(-22, 3), S( -7, 3), S( -2, 3), S( 2, 3), S( 2, 3), S( -2, 3), S( -7, 3), S(-22, 3),
71-
S(-22, 3), S( -7, 3), S( -2, 3), S( 2, 3), S( 2, 3), S( -2, 3), S( -7, 3), S(-22, 3),
71+
S(-11, 3), S( 4, 3), S( 9, 3), S(13, 3), S(13, 3), S( 9, 3), S( 4, 3), S(-11, 3),
7272
S(-22, 3), S(-17, 3), S(-12, 3), S(-8, 3), S(-8, 3), S(-12, 3), S(-17, 3), S(-22, 3)
7373
},
7474
{ // Queen

0 commit comments

Comments
 (0)