Skip to content

Commit d9e061a

Browse files
committed
some diffs
1 parent ac259c5 commit d9e061a

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

‎.github/workflows/games.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ on:
1515
description: "Time control (e.g. 60+0.6 or 10+0.1)"
1616
required: false
1717
default: "60+0.6"
18+
elo0:
19+
description: "elo0"
20+
required: false
21+
default: "0.5"
22+
elo1:
23+
description: "elo1"
24+
required: false
25+
default: "2.5"
1826
output_exec:
1927
description: "Executable output file name"
2028
required: false
@@ -115,7 +123,7 @@ jobs:
115123
-rounds ${{ github.event.inputs.rounds }} \
116124
-concurrency $(nproc) \
117125
-pgnout notation=san nodes=true file=games.pgn \
118-
-sprt elo0=0 elo1=5 alpha=0.05 beta=0.05 | tee results.txt
126+
-sprt elo0=${{ github.event.inputs.elo0 }} elo1=${{ github.event.inputs.elo1 }} alpha=0.05 beta=0.05 | tee results.txt
119127
120128
./ordo-linux64 -o ratings.txt -- games.pgn
121129
sed -n '/Results of new vs base/,/^--------------------------------------------------$/p' results.txt >> ratings.txt

‎eval.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Value *mgPst[] = { nullptr, mg_pawn_table, mg_knight_table, mg_bishop_table, mg_
2929
Value *egPst[] = { nullptr, eg_pawn_table, eg_knight_table, eg_bishop_table, eg_rook_table, eg_queen_table, eg_king_table };
3030

3131
// tuning slop here
32+
/*
3233
TUNE(SetRange(5, 30),
3334
tempo,
3435
SetRange(80, 120),
@@ -224,7 +225,7 @@ TUNE(SetRange(10, 100), minorImWt, SetRange(5, 50), bishopImWt, SetRange(10, 100
224225
TUNE(SetRange(1, 50), rammedPawnPenalty);
225226
TUNE(SetRange(1, 100), rookOnSeventhBonus);
226227
TUNE(SetRange(1, 50), earlyQueenPenalty);
227-
228+
*/
228229
EvalComponents eval_components(const chess::Position &board) {
229230
constexpr int KnightPhase = 1;
230231
constexpr int BishopPhase = 1;

‎search.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ void search(const chess::Position &board, const timeman::LimitsType timecontrol)
592592
session.depth = i;
593593
for (int _ = 0; _ < 64; _++)
594594
for (int j = 0; j < 64; j++)
595-
session.historyHeuristic[_][j] /= 2;
595+
session.historyHeuristic[_][j] = session.historyHeuristic[_][j] * 1 / 2;
596596
auto board_ = board;
597597
Value score_;
598598

0 commit comments

Comments
 (0)