import random
from adventurelib import Item, Bag, when, start


people = '123456'
room = 'abcdef'

# murder configuration
#  who was where
#  who is the murderer

# current configuration
#  who was where
#  player location

murder_config_people = list(people)
random.shuffle(murder_config_people)
murder_location = random.choice(room)
murderer = people[room.find(murder_location)]


current_config_people = list(people)
random.shuffle(current_config_people)
current_location = random.choice(room)

print( current_config_people)
print( current_location)

@when('where am i')
def my_room():

    print("I am in: " , current_location)


start()
import random
from adventurelib import Item, Bag, when, start


people = '123456'
rooms = 'abcdef'

# murder configuration
#  who was where
#  who is the murderer

# current configuration
#  who was where
#  player location

murder_config_people = list(people)
random.shuffle(murder_config_people)
murder_location = random.choice(rooms)
murderer = people[rooms.find(murder_location)]


current_config_people = list(people)
random.shuffle(current_config_people)
current_location = random.choice(rooms)

print( current_config_people)
print( current_location)

@when('where am i')
def my_room():
    print("I am in: " , current_location)

@when('go to the ROOM')
@when('go to ROOM')
def to_room(room):
    if room in rooms:
        print("I am now in %s" % room)
        global current_location
        current_location = room
    else:
        print("I can't find the %s" % room)

start()
add movement