Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support longer names #13

Open
ErinCall opened this issue Dec 30, 2014 · 0 comments
Open

Please support longer names #13

ErinCall opened this issue Dec 30, 2014 · 0 comments

Comments

@ErinCall
Copy link

I'm making a really big game, and I need to be able to use longer names. I want to use A-Z and then start using AA, BB, etc. Maybe the library should support up to 3 character names. That would support up to 17,576 rooms and would probably keep me happy for a while.

For my game.json (below), the library currently outputs this:

+---------+---------+---------+---------+
|         |         |         |         |
|    HH         II         JJJ         K    |
|         |         |         |         |
+---   ---+---------+---------+---------+
|         |                              
|    GGG    |                              
|         |                              
+---   ---+---------+---------+          
|         |         |         |          
|    DD    |    E         FF    |          
|         |         |         |          
+---   ---+---   ---+---------+          
|         |         |         |          
|    A         BB         CCC    |          
|         |         |         |          
+---------+---------+---------+          

game.json:

{
  "rooms": [
    {
      "name": "A",
      "north": "DD",
      "east": "BB",
      "south": null,
      "west": null
    },
    {
      "name": "BB",
      "north": "E",
      "east": "CCC",
      "south": null,
      "west": "A",
      "entrance": "south"
    },
    {
      "name": "CCC",
      "north": null,
      "east": null,
      "south": null,
      "west": "BB"
    },
    {
      "name": "DD",
      "north": "GGG",
      "east": null,
      "south": "A",
      "west": null
    },
    {
      "name": "E",
      "north": null,
      "east": "FF",
      "south": "BB",
      "west": null
    },
    {
      "name": "FF",
      "north": null,
      "east": null,
      "south": null,
      "west": "E"
    },
    {
      "name": "GGG",
      "north": "HH",
      "east": null,
      "south": "DD",
      "west": null
    },
    {
      "name": "HH",
      "north": null,
      "east": "II",
      "south": "GGG",
      "west": null
    },
    {
      "name": "II",
      "north": null,
      "east": "JJJ",
      "south": null,
      "west": "HH"
    },
    {
      "name": "JJJ",
      "north": null,
      "east": "K",
      "south": null,
      "west": "II"
    },
    {
      "name": "K",
      "north": null,
      "east": null,
      "south": null,
      "west": "JJJ",
      "treasure": true
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant