From e591b8b54f98504706fc2f869ff11103901200bb Mon Sep 17 00:00:00 2001 From: "rafael.schimassek" Date: Thu, 11 Dec 2025 16:24:03 +0100 Subject: [PATCH] Inside the washroom, the doors for hallway and loo are not on the same side anymore --- src/loo/rooms/wash_room.py | 20 ++++++++++---------- tests/test_loo/test_rooms/test_washroom.py | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/loo/rooms/wash_room.py b/src/loo/rooms/wash_room.py index fcd51d7..d65ff06 100644 --- a/src/loo/rooms/wash_room.py +++ b/src/loo/rooms/wash_room.py @@ -8,18 +8,18 @@ class WashRoom(AbstractRoom): _BLOCKCHAIN_COMMANDS = ["grab blockchain", "blockchain"] _COIN_COMMANDS = ["grab coin", "coin"] def __init__(self): - self.dod = Item(name="DoD", + self.dod = Item(name="DoD", message="hands washed?" + "\n" + "paper towels in bin?" + "\n" + "toilet flushed?") - - self.blockchain = Item(name="blockchain", + + self.blockchain = Item(name="blockchain", message="Nice, now I have a blockchain in my pocket. Maybe I will become a Crpyto millionaire?!") - - self.coin = Item(name="coin", + + self.coin = Item(name="coin", message="Eww, that wasn't a coin?!") - - self.door = Item(name="door", + + self.door = Item(name="door", message="") - + def get_description(self): return "You enter a room that looks like a washroom." @@ -27,7 +27,7 @@ def get_detailed_description(self): return f"""You see a {self.coin} on the floor. \n You also see an incredibly nasty sink with an undefinable substance in it. Ew! \n You notice a {self.dod} on the door. \n - On the other side of the room you see two doors, one {self.door} to the hallway and another one to the loo. \n + On the other side of the room you see a {self.door} to the hallway; and behind you another door to the loo. \n Oh, and there's a {self.blockchain} in the corner. Interesting..""" def handle_command(self, command): @@ -41,6 +41,6 @@ def handle_command(self, command): return self.coin.message case _: return super().handle_command(command) - + def get_help(self): return super().get_help() + "try to 'look around', 'read DoD', or 'use door to hallway', or 'use door to loo', or 'grab coin', or 'grab blockchain'. Might help." diff --git a/tests/test_loo/test_rooms/test_washroom.py b/tests/test_loo/test_rooms/test_washroom.py index 363ef74..16a97cb 100644 --- a/tests/test_loo/test_rooms/test_washroom.py +++ b/tests/test_loo/test_rooms/test_washroom.py @@ -10,7 +10,7 @@ def test_greet(self): assert washroom.get_detailed_description() == """You see a coin on the floor. \n You also see an incredibly nasty sink with an undefinable substance in it. Ew! \n You notice a DoD on the door. \n - On the other side of the room you see two doors, one door to the hallway and another one to the loo. \n + On the other side of the room you see a door to the hallway; and behind you another door to the loo. \n Oh, and there's a blockchain in the corner. Interesting..""" def test_blockchain(self):