|
| 1 | +print("Hi! Welcome to FirstGame V.1.0") |
| 2 | +askName = input("What is your name? ") |
| 3 | +askAge = int(input("How old are you? ")) |
| 4 | +print("Okay", askName, ", just a sec ... let me process your data." ) |
| 5 | +if askAge >= 10: |
| 6 | + print("Great! You are eligible to play FirstGame!") |
| 7 | + askPlayer = input("Ready to play? ").lower() |
| 8 | + if askPlayer == 'yes': |
| 9 | + print("Cool! Let's go!") |
| 10 | + chooseOne = input("Choose one: Left / Right ").lower() |
| 11 | + if chooseOne == "left": |
| 12 | + print("Answer the questions wisely to earn coins") |
| 13 | + coin = 0 |
| 14 | + print("Coin status:", coin) |
| 15 | + print("Plot 1: You have very tight income. You live with your 2 child and both are dependent on you. Also it is the beginning of the month.") |
| 16 | + chooseTwo = input("What will you buy: Food / Toy for kids ").lower() |
| 17 | + if chooseTwo == "food": |
| 18 | + coin = coin + 2 |
| 19 | + print("Coin status:", coin) |
| 20 | + print("Good! You can buy them toys later when you will save some for extra! :D ") |
| 21 | + print("") |
| 22 | + elif chooseTwo == "toy for kids": |
| 23 | + if coin >= 2: |
| 24 | + coin = coin - 2 |
| 25 | + print("Plot 2: Your friend told you to cheat on exam!! In exchange he will buy you a PS4 for which you were waiting for ages! :'( '") |
| 26 | + chooseThree = input("What will you do? Cheat / Wait and save money to buy it ").lower() |
| 27 | + if chooseThree == "wait and save money to buy it ": |
| 28 | + coin = coin + 2 |
| 29 | + print("Coin status:", coin) |
| 30 | + else: |
| 31 | + if coin >= 2: |
| 32 | + coin = coin + 2 |
| 33 | + print("Coin status:", coin) |
| 34 | + else: |
| 35 | + print("Coin status:", coin) |
| 36 | + #Further line start here |
| 37 | + else: |
| 38 | + print("Lost.") |
| 39 | + else: |
| 40 | + print("Okay! Good bye!") |
| 41 | +else: |
| 42 | + print("Sorry", askName, ". You are not eligible to play. Try later.") |