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

strategyMove() type integration #69

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

gemgames
Copy link

Note: I don't know much about python, I know JS more.
Also, this is my first pull request.

Note: I don't know much about python, I know JS more.
return 0 if (move in defects) else 1
elif type(move) is bool:
Copy link

@duckboycool duckboycool May 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check isn't necessary since bools are converted into 0 or 1 by the else anyway. (And also the numpy array type is int, so it will be converted to an int there.)

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

Successfully merging this pull request may close these issues.

None yet

2 participants