This is the if/else statements I used and I get the same error. Where did I go wrong?
if guess_row == ship_row and guess_col == ship_col: print "Congratulations! You sank my battleship!" else: print "You missed my battleship!" board[guess_row][guess_col] = 'X' print_board(board)
The error message is: You're updating 'guess_row - 1' and 'guess_col - 1' instead of 'guess_row' and 'guess_col'.