I have a microorganism that is eating 160 lettuce molecules. I want the microorganism to only eat one of the lettuce molecules every 60 ticks. How do I write that code in? Below is the code for the microorganism eating the lettuce molecules. Thanks in advance!
to go
ask microorganisms [
move
let food one-of lettuces-here
if food != nobody [
ask food [ die ]
]
]
tick
end
to move
set lettuce_index 1
loop [
ifelse lettuce lettuce_index != nobody [
face lettuce lettuce_index
fd 1
stop
]
[
set lettuce_index lettuce_index + 1
]
]
end