mirror of
https://github.com/Oxbian/CodingGame.git
synced 2025-06-15 18:08:02 +02:00
12 lines
284 B
Python
12 lines
284 B
Python
# game loop
|
|
while 1:
|
|
enemy_1 = input() # name of enemy 1
|
|
dist_1 = int(input()) # distance to enemy 1
|
|
enemy_2 = input() # name of enemy 2
|
|
dist_2 = int(input()) # distance to enemy 2
|
|
|
|
if (dist_1 < dist_2):
|
|
print(enemy_1)
|
|
else:
|
|
print(enemy_2)
|