I would like to check if the player's object is bigger than every other object.
My code works like the following at the moment:
global is_winner = 1
for all opponent_objects:
if opponent_object.width > player.width:
is_winner = 0
if is_winner == 1:
player has won the game!
I don't like to use a global variable for this purpose. Is there another way to do it?
I hope the pseudocode is easy to understand, thanks very much in advance!