Skip to content

Commit

Permalink
Refine postflop
Browse files Browse the repository at this point in the history
  • Loading branch information
Gongsta committed Jun 21, 2024
1 parent e72d2d1 commit 85a8745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/postflop_holdem.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Total = 10^3 = 1000 clusters
TODO: More refined card abstraction using equity distribution
TODO: More refined card abstraction using equity distribution (though this probs make convergence take longer for infosets)
Card Abstraction (equity distribution, to compute potential of hand)
- 50 clusters for flop
- 50 clusters for turn
Expand Down Expand Up @@ -263,7 +263,6 @@ def get_infoSet_key_online(self) -> List[Action]:
continue
if stage_i != 0:
community_cards += [history[i][j : j + 2] for j in range(0, len(action), 2)]
print(hand + community_cards)
if stage_i == 1:
assert len(action) == 6
infoset.append(str(predict_cluster(hand + community_cards)))
Expand All @@ -276,6 +275,7 @@ def get_infoSet_key_online(self) -> List[Action]:
else:
infoset.append(action)

print("my hand with community cards: ", hand + community_cards)
return "".join(infoset)

def get_infoSet_key(self) -> List[Action]:
Expand Down

0 comments on commit 85a8745

Please sign in to comment.