This is an elementary pong game engine library (pong/), together with a demo pong implementation using it (pong-demo/). Included with the engine are also three AIs for enabling gameplay vs. the computer at different difficultty levels:
- Easy - TrackerAI: Simply follows the ball's position at all times.
- Medium - PredictorAI: Predicts the ball's movement trajectory in advance and plans accordingly.
- Hard - AggressiveAI: Not only predicts the ball's movement trajectory, but also takes into account the opposing player's position and attempts to serve the ball away from it.
This software is licensed under the MIT License. See the LICENSE file for more information.