Skip to content

Instantly share code, notes, and snippets.

@thunderInfy
Created January 12, 2022 15:34
Show Gist options
  • Save thunderInfy/654661aa13c00ec7677197ded4615542 to your computer and use it in GitHub Desktop.
Save thunderInfy/654661aa13c00ec7677197ded4615542 to your computer and use it in GitHub Desktop.
# 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