Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python leduc_holdem_human.py next game error #219

Closed
simin75simin opened this issue Jun 2, 2021 · 2 comments
Closed

python leduc_holdem_human.py next game error #219

simin75simin opened this issue Jun 2, 2021 · 2 comments

Comments

@simin75simin
Copy link

OS: ubuntu 18.04
python version: 3.7.10

when i finished training leduc_holdem_human.py and ran python leduc_holdem_human.py, the first game runs well. after that, i got the following error message:

Press any key to continue...
>> Start a new game
Traceback (most recent call last):
  File "leduc_holdem_human.py", line 24, in <module>
    final_state = trajectories[0][-1][-2]
IndexError: list index out of range
@daochenzha
Copy link
Member

@simin75simin I didn't reproduce this error. Did you observe the same error when running the script again? I guess the problem should be that the opponent chooses to fold in the first round and the game ends without a final state of the human player.

@simin75simin
Copy link
Author

yeah, i did not reproduce this error either. strange. perhaps it's a one time thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants