Danger, Will Robinson


#1



Hi! I am Having a problem with this and I can't see where I have gone wrong:


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

however, this is the error message I have: Traceback (most recent call last):
File "python", line 33, in
IndexError: list index out of range


Replace this line with your code.


#2

Hi @nurulhusna97,

What row and column did you enter as a guess, prior to receiving that message?


#3

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