verical
This commit is contained in:
parent
90836eda25
commit
d69213d49f
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user