Skip to content

Commit

Permalink
kldgain 0.00000075. average playout is 1568/move.
Browse files Browse the repository at this point in the history
  • Loading branch information
yssaya committed Jul 29, 2022
1 parent baed40c commit 8570a42
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
6 changes: 4 additions & 2 deletions src/autousi/play.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,16 @@ class USIEngine : public Child {
argv[argc++] = opt_p_value;
#else
char opt_p[] = "-p";
char opt_p_value[] = "3200";
// char opt_p_value[] = "3200";
char opt_p_value[] = "6400";
argv[argc++] = opt_p;
argv[argc++] = opt_p_value;

char opt_kld[] = "-kldgain";
// char opt_kld_value[] = "0.0000013";
// char opt_kld_value[] = "0.000006";
char opt_kld_value[] = "0.000005";
// char opt_kld_value[] = "0.000005";
char opt_kld_value[] = "0.00000075";
argv[argc++] = opt_kld;
argv[argc++] = opt_kld_value;
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/common/param.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#pragma once
namespace Ver {
constexpr unsigned char major = 3; // 2...komaochi, 3...Swish
constexpr unsigned char minor = 5; //
constexpr unsigned char minor = 6; //
// usi_engine is no use. MUST increase "minor" for kicking old engine by server. Only major and minor are sent to client.
constexpr unsigned short usi_engine = 36; // 1...18 AobaZero, 16...26 komaochi, 27...Swish AobaZero
constexpr unsigned short usi_engine = 37; // 1...18 AobaZero, 16...26 komaochi, 27...Swish AobaZero
}

#define AOBA_UNIQUE ".oeWK7ZhnLN"
Expand Down
8 changes: 4 additions & 4 deletions src/playshogi/playshogi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ int main(int argc, char **argv) {

OSI::handle_signal(on_signal);
for (auto &ptr : games) {
start_engine(ptr->engine0,0);
start_engine(ptr->engine1,1);
start_engine(ptr->engine0, 0);
start_engine(ptr->engine1, 1);
start_newgame(*ptr, nplay++, turn0);
if (! flag_f) turn0 = turn0.to_opp();
}
Expand Down Expand Up @@ -912,8 +912,8 @@ Other options:
-T STR Specifies the number of threads for CPU BLAS computation. STR can
contain two numbers separated by ':'. The default is -1 (means an
upper bound of the number).
-i STR usi option file paths. STR can contain two
sizes separated by ':'. The default size is 1.
-i STR usi option file paths. STR must contain two
sizes separated by ':'.
Example:
)" << Opt::cmd << R"( -0 "~/aobaz -w ~/w0.txt" -1 "~/aobaz -w ~/w1.txt"
Generate a gameplay between 'w0.txt' (black) and 'w1.txt' (white)
Expand Down
3 changes: 2 additions & 1 deletion src/usi-engine/bona/shogi.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ extern unsigned char ailast_one[512];
//#define BNZ_VER "33" // 20220429 perpetual check is illegal with 3 times(bug fixed).
//#define BNZ_VER "34" // 20220429 dfpn time limit stop.
//#define BNZ_VER "35" // 20220430 perpetual check bug fixed(again).
#define BNZ_VER "36" // 20220626 pawn ,rook, bishop are always promoted. discovered attack moves have 30% of best policy. safe LCB, kldgain 0.000005.
//#define BNZ_VER "36" // 20220626 pawn ,rook, bishop are always promoted. discovered attack moves have 30% of best policy. safe LCB, kldgain 0.000005.
#define BNZ_VER "37" // 20220626 kldgain 000000075. ave playouts is 1568/move.
#define BNZ_NAME "AobaZero"

//#define BNZ_VER "16" // 20210528 komaochi, mate3
Expand Down
6 changes: 3 additions & 3 deletions src/usi-engine/bona/ysszero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2651,9 +2651,9 @@ bool isKLDGainSmall(tree_t * restrict ptree, int sideToMove) {

double min_kld;
if ( ptree->nrep < 4 ) {
min_kld = MinimumKLDGainPerNode*2; // 初手から4手目までは深く読まない
} else if ( phg->games_sum < 500 ) {
min_kld = 0.000001; // 少ないノード数では厳しい条件の方が強い。総playout数の増加もそれほどなし。
min_kld = MinimumKLDGainPerNode*6; // 初手から4手目までは深く読まない
// } else if ( phg->games_sum < 500 ) {
// min_kld = 0.000001; // 少ないノード数では厳しい条件の方が強い。総playout数の増加もそれほどなし。
} else {
min_kld = MinimumKLDGainPerNode;
}
Expand Down

0 comments on commit 8570a42

Please sign in to comment.