From 12b798ac0058fefeb315f98f5385d96ccb322faa Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sat, 19 Sep 2020 11:12:54 +0700 Subject: Employ linters --- client-examples/hit-and-run.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client-examples') 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): -- cgit 1.4.1