The reason why game programming is important for AI development is, that in the domain of Narrow AI a certain type of task has to be defined first. In the breakout game, the player has to control the paddle on the screen. Before the AI controller, which is sometimes called the agent, can be realized the game itself has to be programmed.

Instead of using an industry grade game engine line Unity, the better training exercise is to program a game from scratch. A simple 2d breakout clone can be realized with a low amount of Javascript code.[1] It contains of the game engine, routines for input handling of the keystrokes and display subfunctions for drawing the game state to the screen. A more elaborated game can be realized with the C# language.[2]


Community content is available under CC-BY-SA unless otherwise noted.