Skip to content

Ghost 👻👻👻👻 Game #82

Open
@DanilGeryng

Description

@DanilGeryng

39123332-beyder-d-chistyy-python-tonkosti-programmirovaniya-dlya-profi-39123332-300x424~2

for i in range(4): 
bob.fd(100) 
bob.lt(90)
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions