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

sample_position error #2

Open
QilongPan opened this issue Aug 11, 2020 · 1 comment
Open

sample_position error #2

QilongPan opened this issue Aug 11, 2020 · 1 comment

Comments

@QilongPan
Copy link

Thanks for sharing this code.I found an error on line 552.it lose len function.

def sample_position(self, game) -> int:
# Sample position from game either uniformly or according to some priority.
return numpy.random.choice(game.history)
I think it should be
def sample_position(self, game) -> int:
# Sample position from game either uniformly or according to some priority.
return numpy.random.choice(len(game.history))

@Zeta36
Copy link
Owner

Zeta36 commented Aug 11, 2020

Please, create a pull request with this fix.

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