From d69213d49f7140d512241f40b6992ead0d611bab Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 28 Aug 2022 20:04:11 +0300 Subject: [PATCH] verical --- battleship/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battleship/utils.py b/battleship/utils.py index 6f76c1f..4758de5 100644 --- a/battleship/utils.py +++ b/battleship/utils.py @@ -144,6 +144,6 @@ def kill_field(field): if killed: for x, y in ship: cells[x][y] = 'x' - for x, y in find_borders(ship[0][0], ship[0][1], len(ship), not bool(ship[-1][1] - ship[0][1])): + for x, y in find_borders(ship[0][0], ship[0][1], len(ship), bool(ship[-1][1] - ship[0][1])): cells[x][y] = '.' return ''.join([''.join(arr) for arr in cells])