Now that we know how to calculate chance and use AFSMs, it's time to explore them a little more and make our characters look smart. This time, we'll use an AI character that is set to behave autonomously in a simulation game such as The Sims. This is a perfect environment to test artificial intelligence because it mimics real-life needs and choices.
In the video game The Sims, the player has the opportunity to control a human-like character and the main goal of the game is to make sure that the character is always in good situations and that their personal and professional life is always on a positive note. Meanwhile, time goes by, just like in real life, and the character gets older until he finally dies at the end. The player is responsible for the life of that being but if the player doesn't give any orders to the character, he will react...