Hacker News new | ask | show | jobs
by justanotherunit 1057 days ago
That’s really interesting, what kind of AI implementation have you decided to work with? I am making a similar project but more of an medieval approach. I went with behavior trees since it felt more appropriate and scalable for such a task
1 comments

I went with a utility approach as I felt it would incur nice emergent behaviour.

Every so often, citizens and companies (I call the abstraction a "Soul") look through everything they can do and pick the on with the highest utility score.

If they're hungry, they'll get food. If it's the time of day where they should work, they'll go to work, except if they're too hungry!