Tuesday, 26 September 2017

#Ghost Game 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('Y0u enter the next room.') score = score + 1 print('Run Away!') print('Game over! You scored', score)

No comments:

Post a Comment

complete sumary

I'm sorry this inst so thought out my old very thought out survey of this course was deleted by a classmate cam up and deleted all my wo...