Skip to content

Commit 3104f38

Browse files
committed
tune
1 parent cc2cd40 commit 3104f38

2 files changed

Lines changed: 17 additions & 19 deletions

File tree

‎.github/workflows/games.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
strategy:
113113
fail-fast: false
114114
matrix:
115-
shard: [0, 1, 2, 3]
115+
shard: [0, 1, 2, 3,4,5,6,7]
116116

117117
runs-on: ubuntu-latest
118118

@@ -134,7 +134,7 @@ jobs:
134134
-engine cmd=base-engine/$OUTPUT_EXEC name=base \
135135
-openings file=tools/UHO_Lichess_4852_v1.epd format=epd order=random \
136136
-each tc=$TC -startup-ms 600000 -ucinewgame-ms 600000 -ping-ms 600000\
137-
-rounds 1500 -repeat -log level=err \
137+
-rounds 375 -repeat -log level=err \
138138
-concurrency $(nproc) -testEnv -sprt elo0=$ELO0 elo1=$ELO1 alpha=0.05 beta=0.05 \
139139
-pgnout notation=san nodes=true \
140140
file=games_${{ matrix.shard }}.pgn \

‎Weights.h‎

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ inline Value mopUpEdgeDistWeight = 10;
1616
inline Value spaceWeight = 2;
1717
inline Value bishopPairMg = 25;
1818
inline Value bishopPairEg = 50;
19-
inline Value developedMg = 8;
20-
inline Value developedEg = 4;
2119
inline Value rookOpenFileMg = 25;
2220
inline Value rookOpenFileEg = 20;
2321
inline Value rookSemiOpenFileMg = 15;
@@ -35,16 +33,6 @@ inline Value kqkEdgeWeight = 15;
3533
inline Value krkDistWeight = 5;
3634
inline Value krkEdgeWeight = 10;
3735
inline Value kpkWeight = 15;
38-
inline Value hangingScore = 70;
39-
inline Value overloadScore = 25;
40-
inline Value threatByRankScore = 10;
41-
inline Value minorImWt = 30;
42-
inline Value bishopImWt = 15;
43-
inline Value rookImWt = 20;
44-
inline Value queenImWt = 50;
45-
inline Value rammedPawnPenalty = 10;
46-
inline Value rookOnSeventhBonus = 30;
47-
inline Value earlyQueenPenalty = 5;
4836
inline Value mgMobilityCnt[7][8] = {
4937
{ 0, 0, 0, 0, 0, 0, 0, 0 },
5038
{ 0, 0, 0, 0, 0, 0, 0, 0 },
@@ -109,6 +97,8 @@ inline Value mg_pawn_table[56] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
10997
inline Value eg_pawn_table[56] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -5, -2, 2,
11098
5, 5, 2, -2, -5, -10, -5, 10, 20, 20, 10, -5, -10, -20, -10, 30, 55, 55, 30,
11199
-10, -20, -35, -20, 70, 110, 110, 70, -20, -35, -60, -45, 120, 180, 180, 120, -45, -60 };
100+
inline Value developedMg = 8;
101+
inline Value developedEg = 4;
112102
inline Value outpostBonusKnight[2] = { 15, 30 };
113103
inline Value outpostBonusBishop[2] = { 10, 25 };
114104
inline Value kingProtector[6][2] = {
@@ -125,17 +115,25 @@ inline Value threatByMinor[7][2] = {
125115
{ 15, 25 },
126116
{ 15, 25 },
127117
{ 25, 35 },
128-
{ 35, 50 },
129-
{ 0, 0 }
118+
{ 35, 50 }
130119
};
131120
inline Value threatByRook[7][2] = {
132121
{ 0, 0 },
133122
{ 0, 0 },
134123
{ 10, 15 },
135124
{ 10, 15 },
136125
{ 20, 25 },
137-
{ 25, 35 },
138-
{ 0, 0 }
126+
{ 25, 35 }
139127
};
128+
inline Value hangingScore = 70;
129+
inline Value overloadScore = 25;
130+
inline Value threatByRankScore = 10;
131+
inline Value minorImWt = 30;
132+
inline Value bishopImWt = 15;
133+
inline Value rookImWt = 20;
134+
inline Value queenImWt = 50;
135+
inline Value rammedPawnPenalty = 10;
136+
inline Value rookOnSeventhBonus = 30;
137+
inline Value earlyQueenPenalty = 5;
140138
} // namespace engine::eval
141-
#endif
139+
#endif

0 commit comments

Comments
 (0)