The four brains at once
The same character in the same house, with the same seed and the same parameters: only the way it decides changes.
Challenges
With the state machine and hysteresis at 0, how many back-and-forths are there in 500 ticks?
"Set it up" gets it ready: press Play until tick 500 and look at the counter.
Add fun: how many NEW arrows does the state machine need?
Count the ones leaving each state and think about the ones arriving at the new one.
With no brakes (hysteresis 0, no finishing what it started, inertia 0), which brain spends the fewest ticks in distress in 500?
"Set it up" removes the brakes; then "All four at once".
It is in wander. Its arrows, in order (the first one that holds fires):
- → eat if Hunger > 50 (35)
- → sleep if Sleep > 50 (25)
- → shower if Hygiene > 50 (20)
| State machine | 12 → 20 | +8 |
|---|---|---|
| Behaviour tree | 11 → 14 | +3 |
| Utility | 4 → 5 | +1 |
| GOAP (planning) | 6 → 8 | +2 |