FANDOM


2019-05-21

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]

References

  1. 2D breakout game using pure JavaScript https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript
  2. Learn C# by Building a Simple RPG – Index https://scottlilly.com/learn-c-by-building-a-simple-rpg-index/
Community content is available under CC-BY-SA unless otherwise noted.