camillemolina1 / Individual-Project

Multi-agent System Cooperation Project
0 stars 0 forks source link

Potential bug - altruistic agents #18

Closed camillemolina1 closed 7 months ago

camillemolina1 commented 7 months ago

Altruistic (Agent 1) vs 2 cooperative agents

The altruistic agent doesn't feed itself until it is really hungry so it gets in this cycle where it starts to go somewhere but cannot make it all the way without eating the plant so it eats it and then goes back for another. So it gets 5 steps away from plant and it gets to hunger 3.5 so it eats the stored plant and hunger goes down to 2.5. It then goes back for another (it takes 5 steps to plant and 5 steps back) and hunger is back up to 3.5

image