repl.it
@rohitkarthik/

A Game In A Day

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#imports
import random

#1st part
print ("Welcome to my second game.")
print ("Today we are going to play a game than involves a house and luck.")
print ("-------------------------------")
print ("|                             |")
print ("-------------------------------")

#second part
answer1 = raw_input("What is your name?")
print ("It is nice to meet you" + answer1 + ". My name is Jack. Now we will move on to the game.")
print ("-------------------------------")
print ("|                             |")
print ("-------------------------------")

#third part
print ("Oh well, we have finished the intorducing to each other part")
print ("We will start by picking a random number to enter a random room")
answer2 = raw_input("Pick a number, 1, 2, or 3.")
if answer2 == "1":
  print ("We will go to Park Place")
elif answer2 == "2":
  print ("We shall go to Rose Hill Middle School")
else:
  print ("We will go to Grasslawn Park")
print ("-------------------------------")
print ("|                             |")
print ("-------------------------------")

#fourth part
print ("Which car shall we take? The Audi (type 1), the Ferrari (type 2), or the Toyota (type 3)")
answer3 = raw_input()
if answer3 == "1":
  print ("Sure we'll take the Audi.")
  print ("It needs a few repairs but we can go in about 5 minutes.")
  print ("5 MINUTES LATER")
  print ("Ok, time to go!")
elif answer3 == "2":
  print ("Alright, I guess we'll take the Ferrari")
  print ("But make sure that it's going to take more than 2 hours to get going.")
  print ("2 HOURS LATER")
  print ("I'm so tired. Let's go to a hotel so we can sleep.")
else:
  print ("Good choice! We can get rolling right away!")
  print ("YES! Time to go!")
print ("-------------------------------")
print ("|                             |")
print ("-------------------------------")

#fifth part
print ("If you took the Ferrari, we are right now in a hotel. Otherwise, we are at Rose Hill Middle. ")
if answer3 == "2":
  print ("Your day is over. And so the game is over. I am sorry that you picked the Ferrari. See you next time.")
else:
  print ("We meet Mr. Jeffrey")
  print ("Mr. Jeffrey has come to talk. 'Hello there. It is nice to meet you. I won't need to know your name. Would you like to take a class, or meet Mr. Billy, our gym teacher?'If you want to take a class, type 1. If you want to meet Mr. Billy, type 2.")
  answer4 = raw_input()
  if answer4 == "1":
    print ("Okay, let's go upstairs")
  else:
    print ("All right, time to go see Mr. Billy.")
  print ("-------------------------------")
  print ("|                             |")
  print ("-------------------------------")

  #sixth part
  print ("Let's go.")
  if answer4 == "1":
    print ("We are upstairs.")
    print ("Mr. Jeffrey invites you in. You talk with him about what you re doing in your school back home")
  else:
    print ("We are down in the gym meeting Mr. Billy. He says 'hi'")
    print ("He says that he is very busy right now. We'll go upstairs.")
    print ("You have wandered into the class late if you met Mr. Billy. Mr. Jeffrey forgets who you are and says you get a 'after school detention'. You stay there and go back home. Thanks for playing!")
  
Fetching token
?