@JadenJoner/

bob game

Python

No description

fork
loading
Files
  • main.py
  • fig
  • start.sh
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
import os

os.system("chmod +x *; ./start.sh")

print("Hello, my name is bob and I will be your guide through this game")
name=input("What is your name? ")
answer=input("So "+name+", do you know how to play this game? ")

if(answer == "y" or answer == "yes" or answer == "y" or answer == "Yes"):
	print("Very well. Sorry I didnt remember you "+name)
else:
	print("Because you are new I will go over how to play")
	print("Firstly, when I am talking to you, you will see the # sighn in the begining of the line")
	input("# Like this. Press enter after each message from now on")
	input("# When you hear something it will look like the following,")
	input("(bob) Now you are hearing me")
	input("(bob:loud) AHH! IM YELLING")
	input("# Now answer my question with the letter in ( ), after the ']'")
	input("(bob) Do you like yes or no better?")
	answer=""
	while answer != "y" and answer != "n":
		answer=input("['(y)es', '(n)o'] ")
		if answer != "y" and answer != "n":
			print("Incorect answer. try again. type y or n")
	input("# Well done. When you answerd '"+answer+"', you said "+answer+" out loud because it was in quotes. Without quotes would be an action like [go (l)eft, go (r)ight]")
	input("# Would you like to practice or start the game now")
	answer=input("[(p)ractice, (s)tart] ")
	if answer == "p":
		input("# Verry well then. Lets get started")
		input("# You are in a dark room with no doors or anything but a dim light above you")
		input("# You are tied to a rusted chair")
		input("# What do you want to do?")
		input("['(h)elp!', try to (u)ntie yourself] ");
		untied=0
		if answer == "h":
			input("# You yell help but no responce")
		else:
			input("# You sucseed to untie your hands")
			untied=1
		input("# You see a hidden door open behind you and a man in a black suit walks in")
		input("(man in suit) Good Morning")
		input("# The man pulls out a gun")
		if untied:
			answer=input("[(g)rab his gun, (r)un out the door] ")
			if(answer=="g"):
				input("# You take the mans gun quickly befor he even knows it")
				input("# Another person comes and you drop the gun")
			else:
				input("# Someone closes the door before you can escape")
		else:
			answer=input("[do (n)othing, '(w)ho are you']")
			input("# The man says nothing")
		input("(gunshot) BANG!")
		input("# The man is shot on his leg and falls to the floor")
		input("# You are saved")
	print()
	input("(bob) Now you will begin the game")