Building the Pong gaming bot

In this section, we will be looking at how we can build a gaming bot that can learn the game of Pong. Before we start, we will look at the approach and concepts that we will be using for building the Pong gaming bot.

Understanding the key concepts

In this section, we will be covering some aspects of building the Pong game bot, which are as follows:

  • Architecture of the gaming bot
  • Approach for the gaming bot

Architecture of the gaming bot

In order to develop the Pong gaming bot, we are choosing a neural-network-based approach. The architecture of our neural network is crucial. Let's look at the architectural components step by step:

  1. We take the gaming screen as the input and preprocess it as per the DQN algorithm.
  2. We pass this ...

Get Machine Learning Solutions 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.