Question about index


#1


13

You're updating 'guess_row - 1' and 'guess_col - 1' instead of 'guess_row' and 'guess_col'.

If I use the suggestion then the place that gets marked with an X won't be the same place with the coordinates I gave in my guess.


else:
    print "You missed my battleship!"
    board[guess_row - 1][guess_col - 1] = "X"
    print_board(board)


#2

@arrayjumper54816

Do you have a problem?


#3

Is the guess I'm making the row/col or the index of that row/col?
Because if it's my row/col then the cordinate being marked with an X is wrong.

I've already finished the Battleship but felt I should mention it.