Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Ghost ๐ป๐ป๐ป๐ป๐ป Game ๐ป๐ป๐ป๐ป๐ป๐ป
#python 3.6.9 from random import randint print('Ghost Game') feeling_brave = True score = 0 while feeling_brave: ghost_door = randint (1, 3) print ('Three doors ahead...') print ('A ghost behind one.') print ('Which door do you open?') door = input('1, 2, or 3?') door_num = int(door) if door_num == ghost_door: print ('Ghost!') feeling_brave = False else: print('No ghost!') print ('You enter the next room.') score = score + 1 print ('Run away!') print ('Game over! You scored', score)
run
|
edit
|
history
|
help
0
ะะฝัะตัะตัะฝัะน Python - ะะพะฟัะพั 1
Python3 complete func.
PyDIP
linked_lists_2
QuickSort
Lcm and hcf
My name
Organizing Transactions
My name
fibonacciseries