ericgjackson / slumbot2019

Implementations of CFR for solving a variety of Holdem-like poker games
MIT License
137 stars 30 forks source link

show_probs_at_node segfaults -> how to look at flop strategy? #18

Open xgshark opened 3 years ago

xgshark commented 3 years ago

I ran the MCCFR example and now want to inspect the strategy.

Preflop works like a charm: ../bin/show_preflop_strategy holdem_params nhs2_params mb1b1_params tcfr_params 0 cum

I do get the same result using this: ../bin/show_probs_at_node holdem_params nhs2_params mb1b1_params tcfr_params 0 cum ""

This gives the strategy for second player after first player limps: ../bin/show_probs_at_node holdem_params nhs2_params mb1b1_params tcfr_params 0 cum c

This however returns a segmentation fault(I am not out of memory): ../bin/show_probs_at_node holdem_params nhs2_params mb1b1_params tcfr_params 0 cum cc

How can I see the flop strategy? How do I encode the board cards in the betting sequence?

Thanks for any hints.

ericgjackson commented 3 years ago

I can take a look over the weekend.

ericgjackson commented 3 years ago

Should be working now.

xgshark commented 3 years ago

Thank you! That works now.

Is there any way to query specific boards or hole cards? The results are quite long and take a long time:

../bin/show_probs_at_node holdem_params nhs2_params mb1b1_params tcfr_params 0 cum ccc | wc -l 2063880

The result is longer for later streets.

Can you point me to the part of the source code where the agent queries a strategy for a specific postflop situation?

Thanks again.