Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from logo import logo
- from logo import vs
- from data import data
- import random
- print(logo)
- game = True
- score = 0
- while game == True:
- a = random.choice(data)
- b = random.choice(data)
- a_name = a["name"]
- a_descr = a["description"]
- a_country = a["country"]
- a_follows = a["follower_count"]
- a_grp = f"Compare a: {a_name}, {a_descr}, from {a_country}"
- b_name = b["name"]
- b_descr = b["description"]
- b_country = b["country"]
- b_follows = b["follower_count"]
- b_grp = f"Against b: {b_name}, {b_descr}, from {b_country}"
- if a == b:
- b = random.choice(data)
- a = random.choice(data)
- print(a_grp)
- print(vs)
- print(b_grp)
- print(f"Your current score is: {score}")
- usrguess = input("Who has more followers? type 'A' or 'B'").lower()
- if a_follows > b_follows and usrguess == "a":
- print('your right')
- score += 1
- elif b_follows > a_follows and usrguess == "b":
- print("your right")
- score += 1
- else:
- print(f'WRONG! Nice Try! Better Luck Next Time! \n your score was: {score}')
- game = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement