Automatically create a 2D array simulations map

202 Views Asked by At

So I'm working on a agent based simulation and I'm going to use a 2D array which could be 500x5000 or 1000x1000. The actual simulation will consist of walls which make up rooms. The problem I don't want to manually insert each wall because this could take very long.

Is there a way where I can create a simple 2D image of a map and have the program read this image and insert the walls into the 2D array based on the image.

Regards

0

There are 0 best solutions below