> For the complete documentation index, see [llms.txt](https://heroicsolo.gitbook.io/heroic-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://heroicsolo.gitbook.io/heroic-engine/getting-started/example-games/turn-based-duel.md).

# Turn based duel

This is turn based duel between 2 identical heroes, where each of them has 3 abilities and Skip Turn button. Opponent is controlled by simple one-layered self-learning neural network.

<figure><img src="https://1131436974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9rEHd0nHFvWCSkMEfAjl%2Fuploads%2F1kRX5NL9V4CHwGrua6Nu%2Fimage.png?alt=media&amp;token=39fda852-c513-4504-99ba-b4c86db52a81" alt=""><figcaption><p>Duel game</p></figcaption></figure>

Here you can see how to work with:

* Perceptron Scriptable Object class
* AIBrain class
* [Events manager](/heroic-engine/basics/publish-your-docs/core-systems/events-manager.md)
* [Quest manager](/heroic-engine/basics/publish-your-docs/gameplay-systems/quest-manager.md)
* [Player Progression manager](/heroic-engine/basics/publish-your-docs/gameplay-systems/player-progression-manager.md)
* [Localization manager](/heroic-engine/basics/publish-your-docs/core-systems/localization-manager.md)
* [UI Controller](/heroic-engine/basics/publish-your-docs/ui-systems/ui-controller.md) (message box and NPC dialog)
* DataSaver class and its secure/unsecure data writing/reading methods

{% hint style="info" %}
To launch this mini-game, enter Playmode from LoadingScene and click appropriate button in main menu.
{% endhint %}

To investigate this mini-game implementation, open scene located in `Assets/Heroic Engine/Example/Scenes/SampleSceneDuel.unity`

After that, you can select Enemy gameobject in scene hierarchy and look into its inspector parameters. Here you can find AIBrain and Ragdoll components and see how it was set up.

<figure><img src="https://1131436974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9rEHd0nHFvWCSkMEfAjl%2Fuploads%2FQLNdGSTbWspggrpEzIuA%2Fimage.png?alt=media&amp;token=6b4d63bd-e472-4c82-9450-ccb164fc0f5c" alt=""><figcaption><p>Enemy gameobject</p></figcaption></figure>
