| 146 | } |
| 147 | |
| 148 | std::vector<int> CNode::get_trajectory(){ |
| 149 | std::vector<int> traj; |
| 150 | |
| 151 | CNode* node = this; |
| 152 | int best_action = node->best_action; |
| 153 | while(best_action >= 0){ |
| 154 | traj.push_back(best_action); |
| 155 | |
| 156 | node = node->get_child(best_action); |
| 157 | best_action = node->best_action; |
| 158 | } |
| 159 | return traj; |
| 160 | } |
| 161 | |
| 162 | std::vector<int> CNode::get_children_distribution(){ |
| 163 | std::vector<int> distribution; |
no test coverage detected