How to implement connected rooms?

后端 未结 7 1224
难免孤独
难免孤独 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:16

    Using a proper graph library would be more powerful and flexible than most of the Map approaches here. The Jung library (http://jung.sourceforge.net/) provides a lot of graph based functionality in Java. Although it might look a little complicated, it's probably worth the time investment in the long run.

    0 讨论(0)
提交回复
热议问题