Play it sam!


Was hoping someone could help me with this turn + 1 at the end. Not sure entirely what they're looking for

if guess_row == ship_row and guess_col == ship_col:
    print "Congratulations! You sunk my battleship!"
    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."
        print "You missed my battleship!"
        board[guess_row][guess_col] = "X"
    for turn in board[guess_row][guess_col]:
        print "Turn", (turn + 1)

I get Traceback (most recent call last):
File "python", line 42, in
TypeError: cannot concatenate 'str' and 'int' objects


I don't think the board contains turns. And isn't a single location on the board just 'O' or 'X'? So iterating through that would get you one iteration, so it's not really a loop, is it?