Chapter 9. Building Games With Artificial Intelligence

In this chapter, we are going to learn how to build games with Artificial Intelligence. We will learn how to use search algorithms to effectively come up with strategies to win the games. We will then use these algorithms to build intelligent bots for different games.

By the end of this chapter, you will understand the following concepts:

  • Using search algorithms in games
  • Combinatorial search
  • Minimax algorithm
  • Alpha-Beta pruning
  • Negamax algorithm
  • Building a bot to play Last Coin Standing
  • Building a bot to play Tic Tac Toe
  • Building two bots to play Connect Four against each other
  • Building two bots to play Hexapawn against each other

Using search algorithms in games

Search algorithms are used in games to ...

Get Artificial Intelligence with Python 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.