Created
August 10, 2021 21:22
-
-
Save VXU1230/5071501f31ff9f9e26ead5eb7e906b6a to your computer and use it in GitHub Desktop.
This file contains 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
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