Update README.md
format modify
This commit is contained in:
parent
d2e6c517ea
commit
2bb02294df
@ -29,9 +29,12 @@ MCTS
|
|||||||
|
|
||||||
DQNAgent etc.
|
DQNAgent etc.
|
||||||
|
|
||||||
Pontential Bugs:
|
## Pontential Bugs:
|
||||||
|
|
||||||
0. Wrong calculation of eval value
|
0. Wrong calculation of eval value
|
||||||
|
|
||||||
UCTNode.cpp
|
UCTNode.cpp
|
||||||
|
```
|
||||||
106 if (to_move == FastBoard::WHITE) {
|
106 if (to_move == FastBoard::WHITE) {
|
||||||
107 net_eval = 1.0f - net_eval;
|
107 net_eval = 1.0f - net_eval;
|
||||||
108 }
|
108 }
|
||||||
@ -39,9 +42,12 @@ UCTNode.cpp
|
|||||||
309 if (tomove == FastBoard::WHITE) {
|
309 if (tomove == FastBoard::WHITE) {
|
||||||
310 score = 1.0f - score;
|
310 score = 1.0f - score;
|
||||||
311 }
|
311 }
|
||||||
|
```
|
||||||
|
|
||||||
1. create children only on leaf node
|
1. create children only on leaf node
|
||||||
|
|
||||||
UCTSearch.cpp
|
UCTSearch.cpp
|
||||||
|
```
|
||||||
60 if (!node->has_children() && m_nodes < MAX_TREE_SIZE) {
|
60 if (!node->has_children() && m_nodes < MAX_TREE_SIZE) {
|
||||||
61 float eval;
|
61 float eval;
|
||||||
62 auto success = node->create_children(m_nodes, currstate, eval);
|
62 auto success = node->create_children(m_nodes, currstate, eval);
|
||||||
@ -49,6 +55,7 @@ UCTSearch.cpp
|
|||||||
64 result = SearchResult(eval);
|
64 result = SearchResult(eval);
|
||||||
65 }
|
65 }
|
||||||
66 }
|
66 }
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user