3D Matrix

In line with the idea in the Origin Story, I wanted all the relevant data pertaining to the city to be stored in a 3D Matrix.

I wrote a list of information to have for each space type (building, greens, open space, road, water) in the city. In reality, this list is only important for the building.

I then created a 3D list to store this data.

More about whether this turned out to be efficient as you read on!

List of information for each space type in the city

Notes to help plan and write the code

Previous
Previous

Hypothetical City

Next
Next

Tackling Inefficiency in Code