Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove case of transition call (_get_children_nodes) #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Source/Tree/tree_builder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,8 @@ end
-- @local
function PokerTreeBuilder:_get_children_nodes(parent_node)

--is this a transition call node (leading to a chance node)?
local call_is_transit = parent_node.current_player == constants.players.P2 and parent_node.bets[1] == parent_node.bets[2] and parent_node.street < constants.streets_count

local chance_node = parent_node.current_player == constants.players.chance
--transition call -> create a chance node
--terminal node has no children
if parent_node.terminal then
return {}
--chance node
Expand Down