загружаю ДЗ с исправлением
This commit is contained in:
parent
8451782617
commit
01d88ffc0f
Binary file not shown.
|
@ -126,10 +126,9 @@ def check_possible(field, row, col):
|
|||
|
||||
if ship_direction == 1:
|
||||
if field_size - col >= ship_size:
|
||||
if check_blocked(field, row, col):
|
||||
for i in range(col, col + ship_size):
|
||||
if check_blocked(field, row, col):
|
||||
return True
|
||||
for i in range(col, col + ship_size):
|
||||
if check_blocked(field, row, col):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue