Обсуждение:Growing Artificial Societies: Social Science From the Bottom Up (Complex Adaptive Systems)

Материал из Поле цифровой дидактики
globals [total-population]

turtles-own [
  food
  water
  wealth
]

to setup
  clear-all
  set total-population 0
  ; Code omitted for brevity
end

to go
  ask turtles [
    move
    consume-resources
    reproduce
  ]
  tick
end

; Code omitted for brevity