From ca43b848b8d5bad01b141d815738961fe32475bc Mon Sep 17 00:00:00 2001 From: TadaoYamaoka Date: Sun, 5 May 2019 09:19:56 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=AD=97=E3=82=B3=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=80=81=E6=94=B9=E8=A1=8C=E3=82=B3=E3=83=BC=E3=83=89=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- make_hcpe_by_self_play/UctSearch.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/make_hcpe_by_self_play/UctSearch.h b/make_hcpe_by_self_play/UctSearch.h index 178f8248..9988c247 100644 --- a/make_hcpe_by_self_play/UctSearch.h +++ b/make_hcpe_by_self_play/UctSearch.h @@ -1,26 +1,26 @@ -#pragma once +๏ปฟ#pragma once #include "move.hpp" -// Œ๓•โŽ่‚ฬล‘ๅ”(”ีใ‘S‘ฬ) +// ๅ€™่ฃœๆ‰‹ใฎๆœ€ๅคงๆ•ฐ(็›คไธŠๅ…จไฝ“) constexpr int UCT_CHILD_MAX = 593; -constexpr unsigned int NOT_EXPANDED = -1; // –ข“WŠJ‚ฬƒm[ƒh‚ฬƒCƒ“ƒfƒbƒNƒX +constexpr unsigned int NOT_EXPANDED = -1; // ๆœชๅฑ•้–‹ใฎใƒŽใƒผใƒ‰ใฎใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚น struct child_node_t { - Move move; // ’…Ž่‚ท‚้ภ•W - int move_count; // ’T๕‰๑” - float win; // Ÿ‚ม‚ฝ‰๑” - unsigned int index; // ƒCƒ“ƒfƒbƒNƒX - float nnrate; // ƒjƒ…[ƒ‰ƒ‹ƒlƒbƒgƒ[ƒN‚ล‚ฬƒŒ[ƒg + Move move; // ็€ๆ‰‹ใ™ใ‚‹ๅบงๆจ™ + int move_count; // ๆŽข็ดขๅ›žๆ•ฐ + float win; // ๅ‹ใฃใŸๅ›žๆ•ฐ + unsigned int index; // ใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚น + float nnrate; // ใƒ‹ใƒฅใƒผใƒฉใƒซใƒใƒƒใƒˆใƒฏใƒผใ‚ฏใงใฎใƒฌใƒผใƒˆ }; struct uct_node_t { int move_count; float win; - bool evaled; // •]‰ฟฯ‚ฉ - bool draw; // ็“๚Ž่‚ฬ‰ย”\ซ‚ ‚่ + bool evaled; // ่ฉ•ไพกๆธˆใ‹ + bool draw; // ๅƒๆ—ฅๆ‰‹ใฎๅฏ่ƒฝๆ€งใ‚ใ‚Š float value_win; - int child_num; // Žqƒm[ƒh‚ฬ” - child_node_t child[UCT_CHILD_MAX]; // Žqƒm[ƒh‚ฬ๎•๑ + int child_num; // ๅญใƒŽใƒผใƒ‰ใฎๆ•ฐ + child_node_t child[UCT_CHILD_MAX]; // ๅญใƒŽใƒผใƒ‰ใฎๆƒ…ๅ ฑ };