Skip to content

Commit

Permalink
🐛 fix dunk allin in tree construction
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfuming committed Mar 10, 2021
1 parent 07b2614 commit e53ffe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/icybee/solver/GameTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ List<Double> get_possible_bets(GameTreeNode root,int player,int next_player,Rule
boolean all_in = streetSetting.allin;
float[] bets_from_rule;
if(betType == BetType.BET)bets_from_rule = streetSetting.bet_sizes;
else if(betType == BetType.DONK)bets_from_rule = streetSetting.donk_sizes;
else if(betType == BetType.DONK){bets_from_rule = streetSetting.donk_sizes;all_in = false;}
else if(betType == BetType.RAISE)bets_from_rule = streetSetting.raise_sizes;
else throw new RuntimeException("bet type unknown");
for(float one_bet:bets_from_rule){
Expand Down

0 comments on commit e53ffe2

Please sign in to comment.