Hi all... I have a question i wanted to ask. I have a ruby file which represents a piece of land which has to be developed by different types of land-uses. For the moment the program does make a grid like structure of 21x21 cells. I then make all the cells of type 0 (no type of land-use). Then i make 2 columns and 1 row type 3, which represents a road type land-use. I also calculate the shortest distances for each cell to these roads. I now need to fill the other cells (which are type 0) for one part with type 1 (housing) and the other remaining cells with type 2 (green/parks). How do i do this the easiest way? I have attached the file so you can check it out to get a better idea of the whole... Please help me as I don't have too much experience with programming, let alone ruby programming... Greets Attachments: http://www.ruby-forum.com/attachment/149/testgrid3_loop.rb -- Posted via http://www.ruby-forum.com/.