Part one Coding Friends game
guessing name game
#!= means is not
#guessing tries += 1 every try
secret_name = "Gunther"
guess = ""
guess_count = 0
guess_midpoint = 5
guess_limit = 10
out_of_guesses = False
print("you get 10 tries!")
while guess != secret_name and not(out_of_guesses):
if guess_count < guess_limit:
guess = input("Guess the name: ")
guess_count += 1
if guess == "Gunther":
print("correct")
elif guess == "Monica":
print("not her, try again")
elif guess == "Rachel":
print("Ain't the spoil one but person likes her")
elif guess == "Chandler":
print("Not the funny one")
elif guess == "Joey":
print("Not actor")
elif guess == "Phoebe":
print("doesn't play the guitar")
elif guess == "Ross":
print("Aint the dinosaur dude")
elif guess == "Carol":
print("not her or her lesbo partner")
elif guess == "Ben":
print("not baby")
elif guess == "Emma":
print("not baby")
elif guess == "Richard":
print("not Monica's ex")
elif guess =="Janice":
print("Oh! my! God! No it's not her")
elif guess =="Jill":
print("aint no anynoying poop")
else:
print("someone from friends")
else:
out_of_guesses = True
if out_of_guesses:
print("out of guesses, you lost boi!")
else:
print("you won!")
No comments:
Post a Comment