Danger, Will Robinson


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

print "You missed my battleship!"
board[guess_row][guess_col] ="X"

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.


Hi @nurulhusna97,

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


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