Skip to content

Instantly share code, notes, and snippets.

@masouduut94
Created October 23, 2020 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masouduut94/7a2e7f135e2b9148339dd5ccac3f05cf to your computer and use it in GitHub Desktop.
Save masouduut94/7a2e7f135e2b9148339dd5ccac3f05cf to your computer and use it in GitHub Desktop.
class GameMeta:
PLAYERS = {'none': 0, 'white': 1, 'black': 2}
INF = float('inf')
GAME_OVER = -1
EDGE1 = 1
EDGE2 = 2
NEIGHBOR_PATTERNS = ((-1, 0), (0, -1), (-1, 1), (0, 1), (1, 0), (1, -1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment