Hey, thanks for the course so far. It has been pretty awesome and I’m thinking about taking your terminal program and using it and what I’ve learnt to write something new.
I need a method to refactor my code. I plan to write a text based game where a player will move back and forward between rooms in a house searching for keys and solving puzzles. I want each room to have a description of its contents and setting when they first enter the room. But to then only list the contents upon any other entry after the first. Considering this house will have about 15 rooms I need to be able to code this well rather than just copying out the same section over and over with different text, I was told to not do things more than twice!
Does anyone have any suggestions?