I’m currently trying to expand the game to add multiple ships in the game, I tried looking up different ways to compare lists but wasn’t able to get the program to work properly. Here’s what I tried so far, create a list for user guess and list for random ships. If user guess matches the random ship - it will be removed from the list/display you won message.
With my code, it only works if there is one item in the list, making the 2 lists identical. If there are 2 or more items in the list, it doesn’t. What would be the best way to compare the items in the lists rather than the lists themselves?
ships = 
ships_guess = 
number_of_ships = int(input("How many ships would you like to place: "))
for placement in range(number_of_ships):
if ships == ships:
range = + 1
guess_row = int(input("Select Row: "))
guess_col = int(input("Select Column: "))
rowcol = [guess_row, guess_col]