Thank you very much for your answer, Martín. I read the "hatch" command and I think it might do. But how can I ask for a closed world with the localof origin in the corner bottom left, to be born in patch (0 0) the turtle 0, in the patch (1 0) the turtle 1, in the patch (20) the turtle 2 and so on successively until the end of the world? I thought about the following code below, but the hatch command can't be used with ask patches and I used ask turtles and it didn't work.
Does anyone have any idea how I can do this?
to setup
clear-all
end
to test
let coordX min-pxcor
let coordY min-pycor
while [coordY <= max-pycor] [
while [coordX <= max-pxcor][
ask patch coordX coordY [ hatch 1 ]
set coordX coordX + 1
]
set coordY coordY + 1
set coordX min-pxcor
]
end
Thanks in advance