New answers tagged

2 votes

Implementing a text adventure using a deque filled in by procedures

It seems like a bad design. The rooms will need state All rooms are going to share some functions, say "turn on light" There will be actions to take independent of the room. "fight ...
user avatar
  • 64.6k

Top 50 recent answers are included