task11.py 601 Bytes
from src.task1 import get_opponent

def check_win(board_ships, board_hits, player, size_board):
    board_ship_opp = board_ships[get_opponent(player)]
    board_hits_player = board_hits[player]
    # TODO (Task 11): write a for loop to iterate over the rows of 
    # board_ship_opp and board_hits_player. For each row, you should check
    # each column position and in the case that board_ship_opp contains a 
    # True in at least one cell but board_hits_player does not, you should 
    # return False. Otherwise, return true. Hint: our solution is around 5 
    # lines long (below).
    return