jtapolczai / wumpus

Affective Wumpus world.
Apache License 2.0
1 stars 0 forks source link

Agent fall into infinite loop #28

Closed jtapolczai closed 9 years ago

jtapolczai commented 9 years ago

Something in the agents causes the simulation to go into an infinite loop (and a space leak).

jtapolczai commented 9 years ago

The fear and enthusiasm filters use up all 100 rounds, even though they should only use 1 each. This doesn't result in an infinite loop, strictly speaking, but it does take a huge amount of time.

jtapolczai commented 9 years ago

Fixed. By c95662a465a8fd6abd0644818183351b4e2e5035. The filter now terminates when the difference between current and past activated nodes is null, not when the set of current activated nodes is null.