DatalogiForAlle / AgentsPy

Agent-based simulation for education in Python
GNU General Public License v3.0
5 stars 0 forks source link

Feedback på epidemi-tutorial #106

Open dybber opened 3 years ago

dybber commented 3 years ago
from agents import *

model = Model("Simpel-model", 50, 50)

min_agent = Agent()

model.add_agent(min_agent)

def step(model):
    min_agent.forward(10)
    min_agent.right(45)

model.add_button("Step", step)

run(model)