Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- twoshipcoords = [[0, 0], [0, 1]]
- oneshipcoords = [[2,2]]
- guess_row = int(input("Guess Row: "))
- guess_col = int(input("Guess Col:"))
- guess_point =[guess_row, guess_col]
- for coords in zip(twoshipcoords[:], oneshipcoords[:]):
- if guess_point == coords:
- twoshipcoords.remove(coords)
- break
- else:
- print("You missed my battleship!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement