lifrordi / DeepStack-Leduc

Example implementation of the DeepStack algorithm for no-limit Leduc poker
https://www.deepstack.ai/
878 stars 211 forks source link

compute the number of terminal node in level 2 #21

Closed DWingHKL closed 6 years ago

DWingHKL commented 6 years ago

In lookaheadbuilder.lua (https://github.com/lifrordi/DeepStack-Leduc/blob/master/Source/Lookahead/lookahead_builder.lua) line 87

self.lookahead.terminal_nodes_count[2] = 2

why self.lookahead.terminal_nodes_count[2] = 2 it should be 1 because just fold action lead to terminal node.

and line 80

self.lookahead.nonterminal_nodes_count[2] = self.lookahead.bets_count[1]

if the action abstraction is FCPA. then self.lookahead.bets_count[1] is equal to 3 (C,P,A). According to _compute_tree_structures function.

so self.lookahead.nonterminal_nodes_count[2] = 3 and self.lookahead.nonterminal_nodes_count[2] + self.lookahead.terminal_nodes_count[2] = 5 > 4 (FCPA) which is confused with me.

Kiv commented 6 years ago

I noticed that terminal_nodes_count is not read anywhere in the code, so the value doesn't matter in the Leduc demo. I assume it was used for something important in the real DeepStack and was mistakenly left in.