from tokenize import Ignore


print("Welcome to my quiz on Star Wars! Test your knowledge to see if you are a true Star Wars nerd! So everything runs smoothly, please answer in all lowercase. Thanks and have fun!")


questions = [
    "Level 0: Who is Luke Skywalker's father?", "Level 1: What trilogy is the Death Star primarily in?", "Level 2: What is Finn's stormtrooper code name?", "Level 3: Where did Anakin and Obiwan duel Darth Maul?", "Level 4: What is Anakin's midi-chlorian count (aproximately)?", "Level 5: Of what species is Yoda?"]
answers = [
    "anakin skywalker", "original trilogy", "fn-2187", "naboo", "27000", "unknown"]
MidichlorianValues = [ 250, 750, 2000, 4000, 8000, 12000]

#Variables
level = 0
Midichlorian = 0

for question in questions:
    print("For ", MidichlorianValues[level], " Midi-Chlorian: " + question)
    guess = str(input())

    if(guess == answers[level]):
        Midichlorian+=MidichlorianValues[level]
        print("You got it! You answered " + guess +" for "+ str(MidichlorianValues[level]) + " Midi-Chlorian, Your Midi-Chlorian total is " +str(Midichlorian) + " Midi-Chlorian ")
    else:
        print("Wrong! I find your lack of faith disturbing. You answered " + guess +" for "+ str(MidichlorianValues[level]) + " Midi-Chlorian, The correct response was " + answers[level]+ " You currently have " + str(Midichlorian) + " Midi-Chlorian")
    
    level+=1

    if(level>5):
        if(Midichlorian>17000):
            print("The Empire wants YOU to join! You recieved a total of "+str(Midichlorian) + " Midi-Chlorian out of 27000 possible Midi-Chlorian") 
        else:
            print("You've been Jedi mind-tricked! You recieved a total of "+str(Midichlorian) + " Midi-chlorian out of 27000 possible Midi-Chlorian")
    else: 
        Ignore
Welcome to my quiz on Star Wars! Test your knowledge to see if you are a true Star Wars nerd! So everything runs smoothly, please answer in all lowercase. Thanks and have fun!
For  250  Midi-Chlorian: Level 0: Who is Luke Skywalker's father?
You got it! You answered anakin skywalker for 250 Midi-Chlorian, Your Midi-Chlorian total is 250 Midi-Chlorian 
For  750  Midi-Chlorian: Level 1: What trilogy is the Death Star primarily in?
You got it! You answered original trilogy for 750 Midi-Chlorian, Your Midi-Chlorian total is 1000 Midi-Chlorian 
For  2000  Midi-Chlorian: Level 2: What is Finn's stormtrooper code name?
You got it! You answered fn-2187 for 2000 Midi-Chlorian, Your Midi-Chlorian total is 3000 Midi-Chlorian 
For  4000  Midi-Chlorian: Level 3: Where did Anakin and Obiwan duel Darth Maul?
You got it! You answered naboo for 4000 Midi-Chlorian, Your Midi-Chlorian total is 7000 Midi-Chlorian 
For  8000  Midi-Chlorian: Level 4: What is Anakin's midi-chlorian count (aproximately)?
You got it! You answered 27000 for 8000 Midi-Chlorian, Your Midi-Chlorian total is 15000 Midi-Chlorian 
For  12000  Midi-Chlorian: Level 5: Of what species is Yoda?
You got it! You answered unknown for 12000 Midi-Chlorian, Your Midi-Chlorian total is 27000 Midi-Chlorian 
The Empire wants YOU to join! You recieved a total of 27000 Midi-Chlorian out of 27000 possible Midi-Chlorian
!pwd
from IPython.display import Image
Image(url="images/ineedyoustarwars.jpg", width=183, height=275)
/root/vscode/que-pro/_notebooks