コード例 #1
0
 def _step(world, agent, interaction):
     if world.can_step(agent):
         agent.step()
         agent.add_to_homeostatic_value("energy", -0.1)
         return Elements.step
     else:
         return Elements.step_fail
コード例 #2
0
ファイル: basic.py プロジェクト: kabramova/enactive-agents
 def _step(agent, world):
     if world.can_step(agent):
         agent.step()
         return step
     else:
         return bump
コード例 #3
0
 def _step(agent, world):
     if world.can_step(agent):
         agent.step()
         return step
     else:
         return bump