A very simple “fight” game between a human player—the attacker—and an AI bot—which only defends. The prototype is preconfigured with six types of attack performed with keystroke combinations (three regular, and three more powerful and complex in terms of keystrokes), and three types of defense, all fully configurable via Unity’s editor. The AI bot uses an (also parameterizable) hierarchical N-gram to learn and predict the next human attack given its first few keystrokes in order to raise a properly timed defense.
This prototype uses the NGrams
and Util
modules of the libgameai library
(MIT License).