verical
This commit is contained in:
parent
90836eda25
commit
d69213d49f
@ -144,6 +144,6 @@ def kill_field(field):
|
|||||||
if killed:
|
if killed:
|
||||||
for x, y in ship:
|
for x, y in ship:
|
||||||
cells[x][y] = 'x'
|
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] = '.'
|
cells[x][y] = '.'
|
||||||
return ''.join([''.join(arr) for arr in cells])
|
return ''.join([''.join(arr) for arr in cells])
|
||||||
|
Loading…
Reference in New Issue
Block a user