How to implement connected rooms?

后端 未结 7 1223
难免孤独
难免孤独 2021-02-04 22:27

This may be a duplicate question as I don\'t know to phrase the search query. I\'m creating a Zork-like text based game in Java where the character moves to different rooms whic

7条回答
  •  逝去的感伤
    2021-02-04 23:12

    An array of rooms, and for each room a list of exits, with reference to the room that it leads to.

提交回复
热议问题