-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8dd2b0
commit ca43b84
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
#pragma once | ||
#pragma once | ||
|
||
#include "move.hpp" | ||
|
||
// 候補手の最大数(盤上全体) | ||
// 候補手の最大数(盤上全体) | ||
constexpr int UCT_CHILD_MAX = 593; | ||
|
||
constexpr unsigned int NOT_EXPANDED = -1; // 未展開のノードのインデックス | ||
constexpr unsigned int NOT_EXPANDED = -1; // 未展開のノードのインデックス | ||
|
||
struct child_node_t { | ||
Move move; // 着手する座標 | ||
int move_count; // 探索回数 | ||
float win; // 勝った回数 | ||
unsigned int index; // インデックス | ||
float nnrate; // ニューラルネットワークでのレート | ||
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; // 子ノードの数 | ||
child_node_t child[UCT_CHILD_MAX]; // 子ノードの情報 | ||
int child_num; // 子ノードの数 | ||
child_node_t child[UCT_CHILD_MAX]; // 子ノードの情報 | ||
}; |