Populating a grid

Hello,

I have a task where I have to populate a grid full of monsters given the label '5'. Whilst on the grid food must be randomly placed around the grid and the monsters energy then increasing until its had enough food to reach '9'.

Could anyone assist me in starting this, i have also been given the random number code and the code for the grid, i just need help with population and so on.

Thanks.
Kind of a broad question, why don't you post the code you have so far?

Hint:
To populate a grid, which most probably is a container, you have to traverse the container.
Last edited on
Topic archived. No new replies allowed.