загружаю ДЗ с исправлением

This commit is contained in:
ehermakov 2023-11-27 14:27:46 +03:00
parent 8451782617
commit 01d88ffc0f
3 changed files with 3 additions and 4 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
HNS/.DS_Store vendored

Binary file not shown.

View File

@ -126,7 +126,6 @@ def check_possible(field, row, col):
if ship_direction == 1: if ship_direction == 1:
if field_size - col >= ship_size: if field_size - col >= ship_size:
if check_blocked(field, row, col):
for i in range(col, col + ship_size): for i in range(col, col + ship_size):
if check_blocked(field, row, col): if check_blocked(field, row, col):
return True return True