Brainstorming and information gathering

The term artificial intelligence is very notorious in the tech world, but if you inspect the depth of it, it is a bunch of modules and conditionals that determine the flow of agents. Here, agents can be anything that make decisions, such as machines, humans, and robots. All these agents perform actions that can produce the most desirable results. In our game of tic-tac-toe, the agent is a computer player, and it should take actions that can beat our player in the game. We have a dedicated chapter to learning about AI and its rational agents, which will be covered after we finish learning basic game programming. However, in this section, we are going to create a simple AI that can decide on the most ...

Get Learning Python by Building Games now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.