---
description: >-
  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.
---

# Turn based duel

<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&#x26;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](../../basics/publish-your-docs/core-systems/events-manager)
* [Quest manager](../../basics/publish-your-docs/gameplay-systems/quest-manager)
* [Player Progression manager](../../basics/publish-your-docs/gameplay-systems/player-progression-manager)
* [Localization manager](../../basics/publish-your-docs/core-systems/localization-manager)
* [UI Controller](../../basics/publish-your-docs/ui-systems/ui-controller) (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&#x26;token=6b4d63bd-e472-4c82-9450-ccb164fc0f5c" alt=""><figcaption><p>Enemy gameobject</p></figcaption></figure>
