Thursday, February 7, 2019

Building your world - part one: what is a room?

What is a room?

You could write essays, even multi-volume books on this question, but what we are after is the bare skeleton that is required for our adventure.
Now a lot of this was covered on the course, but a room will have the following characteristics: 
  1.         A Name
  2.         A Description
  3.         A list of links to other rooms
  4.         Who is in there
  5.         What is in there
On the course, a class was developed to contain this information. Now for persistence we will be using a MySQL database to contain the information. This will be read into a Python class which the program will then use to describe the environment and allow interaction.

Who and what will be handled later, so the key information is the name, the description and the links. In addition we will also need to have a room identifier, an integer that we can use elsewhere in the program.