Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

poker_ai train, discount does not work, typo in conditional #122

Open
mamdf opened this issue Nov 19, 2020 · 0 comments
Open

poker_ai train, discount does not work, typo in conditional #122

mamdf opened this issue Nov 19, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mamdf
Copy link

mamdf commented Nov 19, 2020

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

@mamdf mamdf added the bug Something isn't working label Nov 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants