Not again


#1

I am getting this and I can't progress any further.

Oops, try again. Did you remember to add the "You guessed that one already." message in your elif statement?

if guess_row==ship_row and guess_col==ship_col:
    print "Congratulations! You sank my battleship!"
else:
    if guess_row not in range(5) or guess_col not in range(5):
        print "Oops, that's not even in the ocean."
    elif board[guess_row][guess_col] == 'X':
        print "You guessed that one already"
    else:
        print "You missed my battleship!"
        board[guess_row][guess_col] = 'X'
        print_board(board)

Problem with an elif during test run
#2

Hi, I have the same problem ! Do you finally find the solution ?


#3

@dinos99 you miss a full stop (.) after already.

@textpro99388 make a new topic if you need help


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.