Created
January 12, 2022 15:34
-
-
Save thunderInfy/654661aa13c00ec7677197ded4615542 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if the current cell which is being handled has orbs of opposite color, then | |
# we need to decrease them from our opporbs count, | |
# because they will change to our color | |
if state.color[row][col] == -turn_color: | |
opporbs -= state.orbs[row][col] | |
myorbs += state.orbs[row][col] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment