## ★ Aan de slag 29

1. Herschrijf de procedure die bij de go-knop hoort:

   to go move-turtles eat-grass reproduce check-death regrow-grass end

2. Voeg de code toe voor de procedures reproduce, check-death en regrow-grass:

   to reproduce ask turtles[ if energy > 50 [ set energy (energy - 50) hatch 1 [set energy 50] ] ] end to check-death ask turtles [ if energy <= 0 [die] ] end to regrow-grass ask patches [ if random 100 < 3 [set pcolor green] ] end