This commit is contained in:
Administrator 2022-08-28 20:04:11 +03:00
parent 90836eda25
commit d69213d49f

View File

@ -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])