# Einstein's Riddle (Advanced Minigame)

<figure><img src="/files/3toCodWKeqnB3J2s9N2W" alt="" width="375"><figcaption></figcaption></figure>

Drag the component from the subcomponents bar to the scene you're working on.

## How to change the component style

To resize it, use the arrow icon in the top menu.

<figure><img src="/files/WtG2MbuHEd6unCYIQZSs" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The minigames and puzzles must be set up with actions to work properly and also define what happens once the player wins, finishes, or loses.
{% endhint %}

## How to set up the Einstein's riddle minigame

Click on the minigame and then on the settings gear icon that will appear in the top menu or double click on the minigame.

You will see a menu with two set up options: Settings and Advanced.

### Settings

<figure><img src="/files/BtiQBQzgjaPQWkL56vlo" alt=""><figcaption></figcaption></figure>

To set up this game you have to set columns, rows, tiles and clues.

* **Columns**: you can add up to 6 columns, add a name to each column.
* **Rows**: you can add up to 6 rows, add a name to each row.
* **Tiles**: within the rows you can add to up 6 tiles per row, adding a name to each tile.
* **Clues:** you can add an unlimited number of clues to help the player organize the tiles in their correct possition.  The player can go backward and forward between the clues during the game.&#x20;

{% hint style="info" %}
It's important that you add the tiles in the correct order. The first tile of the row is under the first column, the second tile of the row is under the second column and so on. This will determine the correct answer for the game
{% endhint %}

### Advanced

<figure><img src="/files/du0fhGPlOIbQbWiBT2cL" alt=""><figcaption></figcaption></figure>

In the advanced options you can:

* Mute the game.
* Activate Autocheck: this will let the player know when they have placed a tile in its correct position (only if it's not muted) and will end the game once all the tiles are in its correct position.

## How to set up the win/lose actions:

There are only two options in this game. Winning or losing the game.

{% hint style="info" %}
It's very important to specify what should happen in each case. Click on the Actions icon in the top menu and add one or more actions for both when the player gets the puzzle right or wrong.
{% endhint %}

<figure><img src="/files/YOK509856I3hFtAkuuiN" alt=""><figcaption></figcaption></figure>

For each one of these options you can set you the following actions:

* **Visit an external URL**
* **Subtract X points**
* **Add X points**
* **Go to another scene in the game**

{% hint style="info" %}
If the Autocheck is activated the player can only win the game
{% endhint %}

&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.theufolab.com/game-editor/components/minigames/einsteins-riddle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
