File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -331,14 +331,13 @@ void BehaviorSupportProfile::FindReachableInfosets(GameNode p_node) const
331331{
332332 if (!p_node->IsTerminal ()) {
333333 auto infoset = p_node->GetInfoset ();
334-
334+ (*m_reachableInfosets)[infoset] = true ;
335335 if (p_node->GetPlayer ()->IsChance ()) {
336336 for (auto action : infoset->GetActions ()) {
337337 FindReachableInfosets (p_node->GetChild (action));
338338 }
339339 }
340340 else {
341- (*m_reachableInfosets)[infoset] = true ;
342341 for (auto action : GetActions (infoset)) {
343342 FindReachableInfosets (p_node->GetChild (action));
344343 }
Original file line number Diff line number Diff line change @@ -158,8 +158,8 @@ class BehaviorSupportProfile {
158158 {
159159 auto reachable_infosets = m_support->GetReachableInfosets ();
160160 size_t count = 0 ;
161- for (auto [key, value ] : *reachable_infosets) {
162- if (value ) {
161+ for (auto [infoset, is_reachable ] : *reachable_infosets) {
162+ if (is_reachable && !infoset-> GetPlayer ()-> IsChance () ) {
163163 ++count;
164164 }
165165 }
You can’t perform that action at this time.
0 commit comments