Skip to content

Instantly share code, notes, and snippets.

@alexgolec
Created December 2, 2018 17:30
Show Gist options
  • Save alexgolec/3ef05f3dd7fd19ae4c0ca5f52062d185 to your computer and use it in GitHub Desktop.
Save alexgolec/3ef05f3dd7fd19ae4c0ca5f52062d185 to your computer and use it in GitHub Desktop.
NEIGHBORS_MAP = {
0: (4, 6),
1: (6, 8),
2: (7, 9),
3: (4, 8),
4: (3, 9, 0),
5: tuple(), # 5 has no neighbors
6: (1, 7, 0),
7: (2, 6),
8: (1, 3),
9: (2, 4),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment