@mhs_mhs123/

textbasedgametrial2

Python

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
answer = input('Do you want to play this game?')

if answer == 'yes':
	print('you find yourself in a dark cave, no light, no food and no water, no chance of survival.')
	print('you see two paths in front of you. You do not know where either of them lead to')
	answer = input('Which path do you want to go down?')
elif answer == 'no':
	print("thanks for trying the game anyways.")

if answer == 'right':
	print('you notice a waterfall in the distance.')
	print('you become excited and relieved because the waterfall may be your only chance at survival at this point.')
	answer = input('Do you want to take a closer look at the waterfall?')
elif answer == 'left':
	print('you notice a strange door, which is missing a piece')
	print('Suddenly, you hear a a being behind you. Before you know it you are devoured by this demon.')
	print('You died.')
	exit()

if answer == 'Yes':
	print('while bathing in the waterfall, you notice a purple stone. Out of curiosity, you pick it up and begin exploring the cave even more.')
	print('you see a path which leads to a door.')
	answer = input('Do you want to approach the door?')
	if answer == 'Yes':
		print('the purple stone seems to fit perfectly into a gap in the door')
		answer = input('Do you want to try to fit the stone in the door?')
		if answer == 'Yes':
			print('as you put the stone in the door, the dark cave begins to disappear and you begin to see and feel the warmth of daylight surrounding you.')
			print('you won!')
	else:
		print('you are swallowed by a monster.')
if answer == 'No':
	print('you eventually die of thirst and hunger since you did not go toward the waterfall. ')