diff --git a/src/adv.py b/src/adv.py index c9e26b0f85..d8fcddf3be 100644 --- a/src/adv.py +++ b/src/adv.py @@ -49,3 +49,4 @@ # Print an error message if the movement isn't allowed. # # If the user enters "q", quit the game. + diff --git a/src/player.py b/src/player.py index d79a175029..6f2b0b2e07 100644 --- a/src/player.py +++ b/src/player.py @@ -1,2 +1,10 @@ # Write a class to hold player information, e.g. what room they are in # currently. +class Player: + def __init__(self ,name, current_room, items = []): + self.name = name + self.current_room = current_room + self.items = items + + def __repr__(self): + return f"{self.items}" \ No newline at end of file