fedden / poker_ai

🤖 An Open Source Texas Hold'em AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infinite String of Raises

big-c-note opened this issue · comments

commented

Describe the bug
In the legal_actions property of the ShortDeckPokerState class there was logic that allowed for an infinite string of raises:

if self._n_raises < 3 or self._poker_engine.n_active_players == 2:

When n_active_players == 2, raises can always be added to the legal moves, and since a string of raises never completes action, it becomes infinite.

Fixed in #76