Battleship! - Bad Aim [SOLVED]


#1

I think I figured it out... well at least it passes...

Write your code below!

if guess_row == ship_row and guess_col == ship_col:
"Congratulations! You sank my battleship"
else:
if guess_row not in range(int(len(board)-1)) or guess_col not in range(int(len(board)-1)):
print "Oops, that's not even in the ocean."
else:
print "You missed my battleship!"
board[(guess_row)][(guess_col)] = 'X'
print_board(board)


#2

Don't beat your self up over this one.......... it stumped me.

Make sure your print " " have the EXACT right text before you change your code. Sometimes the simplest answers are the best: blush: