int height = 100;
int width = 50;
so it's easy, i think you should read the manual from java document. but since your question has many interpretation we cannot answer clearly
rght , sorry my english is not that good. i'm still confused about how do you set the algorithm. like if you would like to specify in which block you want the thing to put something. sorry if it's a bit confusing.
I think what is being said is that, "yes, we are confused".
jprasetyo wrote...
how do you set the algorithm. like if you would like to specify in which block you want the thing to put something
Is the 'block' a grid-square in your world?
How is the block to be specified, specifically?
Is the location to be specified before the scenario starts, or while it is running?
What is 'the thing'?