Game Over ... but is it really?


#1

Error below in #comments ... I can't figure out why it errors on the second run.

guess_row = int(raw_input("Guess Row:"))
guess_col = int(raw_input("Guess Col:"))

if guess_row == ship_row and guess_col == ship_col:
    print "Congratulations! You sunk my battleship!"
else:
    if (guess_row < 0 or guess_row > 4) or (guess_col < 0 or guess_col > 4):
        print "Oops, that's not even in the ocean."
    elif(board[guess_row][guess_col] == "X"):
        print "You guessed that one already."
    else: #under else for misses
        print "You missed my battleship!"
        board[guess_row][guess_col] = "X"
        turn = turn + 1
        print turn
    if turn == 4: #game ending on turn 3
        print"Game Over"
    print_board(board)
    
    # first run success with guess 1:2
    # second run fail with guess 2:3 
        #error: Oops, try again. Did you create an if statement that prints out "Game Over" if the player reaches 4 incorrect guesses?


#2

Ho try To put a space between print And "Game Over"

print "Game Over"

#3

That didn't seem to change the error, but thank you.


#4

turn should equal 3 at the fourth time It starts from zero