Skip to content

Instantly share code, notes, and snippets.

@VXU1230
Created August 10, 2021 21:22
Show Gist options
  • Save VXU1230/5071501f31ff9f9e26ead5eb7e906b6a to your computer and use it in GitHub Desktop.
Save VXU1230/5071501f31ff9f9e26ead5eb7e906b6a to your computer and use it in GitHub Desktop.
def get_nei(x, y):
return [(x + 1, y), (x - 1, y), (x + 1, y - 1), (x - 1, y - 1), (x + 1, y + 1), (x - 1, y + 1), (x, y + 1),
(x, y - 1)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment