list<cell> cells_nearby <- cell at_distance sensing_radius // update: cells_nearby;
update: cell at_distance sensing_radius;
}
In addition, looking at the target_cell action, you could remove the current cell of the agent from the cells list, so that the agent has to change at eahc step.
cell target_cell {
return (cells_nearby - myCell) with_max_of (each.cell_value);
}
Cheers
Benoit
--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/5f4ff91c-fdb7-42a3-8230-a34ef1e2b99d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/CAD4GtYEJ5aeNTbL707dKAszDYNP%2B8R7Y6dY-X6kQkUkwBfv7Hw%40mail.gmail.com.