Summary

In this chapter, we learned about the applications of probability in-game AI design. We experimented with some of the techniques by implementing them in Unity3D. As a bonus, we also learned about the basics of how a slot machine works, and implemented a simple slot machine game using Unity3D. Probability in game AI is about making the game and the characters seem more realistic by adding uncertainty to their behavior, so that the players cannot predict the outcome.

In the next chapter, we will take a look at implementing sensors, and how they can be used to make our AI aware of its surroundings.

Get Unity Artificial Intelligence Programming - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.