Where do i put the 'break' command?


#1

f guess_row == ship_row and guess_col == ship_col:
    print "Congratulations! You sunk my battleship!" break
else:
    if (guess_row < 0 or guess_row > 4) or (guess_col < 0 or guess_col > 4):

#2

I'm guessing on line line right after your print statement.


#3

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