diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2020-09-19 11:12:54 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2020-09-19 11:12:54 +0700 |
commit | 12b798ac0058fefeb315f98f5385d96ccb322faa (patch) | |
tree | a83509c7c257aed00e8c8ef5c760037e4d4d9273 /client-examples | |
parent | d97e1a1294ba3bc542b0611b39f86b218de935b0 (diff) | |
download | brutalmaze-12b798ac0058fefeb315f98f5385d96ccb322faa.tar.gz |
Employ linters
Diffstat (limited to 'client-examples')
-rwxr-xr-x | client-examples/hit-and-run.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client-examples/hit-and-run.py b/client-examples/hit-and-run.py index 7959315..09dc7fa 100755 --- a/client-examples/hit-and-run.py +++ b/client-examples/hit-and-run.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 from contextlib import closing, suppress -from math import inf, atan2, degrees +from math import atan2, degrees, inf from random import randrange, shuffle from socket import socket @@ -9,9 +9,9 @@ AROUND = [5, 2, 1, 0, 3, 6, 7, 8] def get_moves(y, x): """Return tuple of encoded moves.""" - return ((y - 1, x - 1), (y - 1, x), (y - 1, x + 1), - (y, x - 1), (y, x), (y, x + 1), - (y + 1, x - 1), (y + 1, x), (y + 1, x + 1)) + return ((y - 1, x - 1), (y - 1, x), (y - 1, x + 1), # noqa + (y, x - 1), (y, x), (y, x + 1), # noqa + (y + 1, x - 1), (y + 1, x), (y + 1, x + 1)) # noqa def is_wall(maze, y, x): |