def is_sunk(ship):
    """
    This method checks if a ship is sunk or not after getting a shot from user.
    :param ship: tuple
    :returns result: bool - True if so and False otherwise
    """
    result = True
    for i in range(ship[3]):
        # if horizontal
        if ship[2]:
            if(ship[0], ship[1] + i) not in ship[4]:
                result = False
                break
        # if vertical
        else:
            if(ship[0] + i, ship[1]) not in ship[4]:
                result = False
                break
    return result