fedden / poker_ai

🤖 An Open Source Texas Hold'em AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

poker_ai train, discount does not work, typo in conditional

mamdf opened this issue · comments

commented

if t < self._lcfr_threshold & t % self._discount_interval == 0:
I don't know why do you use binary compare '&' instead 'and' in this particular condition, I think is a typo.

The problem is that, 2 < 4 & 2 % 2 == 0 --> False
because in python "& vs and" has a different operator precedence you need to use parenthesis or easier "and"

if t < self._lcfr_threshold and t % self._discount_interval == 0