Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. twoshipcoords = [[0, 0], [0, 1]]
  2. oneshipcoords = [[2,2]]
  3.  
  4. guess_row = int(input("Guess Row: "))
  5. guess_col = int(input("Guess Col:"))
  6. guess_point =[guess_row, guess_col]
  7.  
  8. for coords in zip(twoshipcoords[:], oneshipcoords[:]):
  9. if guess_point == coords:
  10. twoshipcoords.remove(coords)
  11. break
  12. else:
  13. print("You missed my battleship!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement