Skip to content

Files

Latest commit

2da35a4 · Aug 22, 2023

History

History
22 lines (15 loc) · 820 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 820 Bytes

NGrams Fight

Summary

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.

Supporting code structure

This prototype uses the NGrams and Util modules of the libgameai library (MIT License).

Other materials