From 7d7ba837743b378a116d43736fc619c2488baef6 Mon Sep 17 00:00:00 2001 From: Karel Ha Date: Sat, 6 Jan 2018 23:59:46 +0100 Subject: [PATCH] Remove case of transition call (_get_children_nodes) Signed-off-by: Karel Ha --- Source/Tree/tree_builder.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Tree/tree_builder.lua b/Source/Tree/tree_builder.lua index 95e2cc2..e405a18 100644 --- a/Source/Tree/tree_builder.lua +++ b/Source/Tree/tree_builder.lua @@ -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