These are chat archives for drvinceknight/agent-based-learn

10th
Jul 2015
Vince Knight
@drvinceknight
Jul 10 2015 10:21
@cesaresparza I’ve added a comment here: drvinceknight/agent-based-learn@bfed6be
cesaresparza
@cesaresparza
Jul 10 2015 17:26
hi @drvinceknight I have a doubt
cesaresparza
@cesaresparza
Jul 10 2015 17:33
I have been going around in how to add the strategy to an agent. I was recreating in python a small code where I create the class and with an instance. Then when I try to create the list it will not allow me to do so if I do not set a value for instance attribute.
Vince Knight
@drvinceknight
Jul 10 2015 17:34
You don't need to change anything in the agent.
It'll be something like
G
I'm on my phone so typing code is a pain.
for a in env.agents:a.strategy = 3
Vince Knight
@drvinceknight
Jul 10 2015 17:40
You can give whatever attribute whatever value to whatever you want in python. Read up on object oriented things and let me know.
cesaresparza
@cesaresparza
Jul 10 2015 17:40
ok I see
thank you