I'm very agitated right now!!! this is the battleship game and I'm on the part where if you guess incorrectly and "X" is placed on the board.
Here is my code for that portion (i'm not gonna write the entire code):
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)
If somebody could tell me what it is i did wrong i would appreciate it very much.
Here is the error I keep getting
Traceback (most recent call last):
File "python", line 33, in
TypeError: list indices must be integers, not tuple
Tuple means two numbers but I'm just not getting it.