# Exports

How To Add any Minigame to Your scripts:

```lua
local gameType = 'memory'   -- e.g. memory, maze, timingbar, wires, fuses, fruitninja, pizzacutter, boxpacking, assembly, harvest, osu, wordle, hackterm, keycombo, signaltrace, bruteforce, snake, pong, lockring, datacrack

local options = {
  difficulty = 'medium',  -- 'easy' / 'medium' / 'hard' if the game supports it
}

exports['oct_minigames']:OpenMinigame(gameType, options, function(success)
  if success then
    print('[oct_minigames] Player won: ' .. gameType)
    -- give reward, continue action, etc.
  else
    print('[oct_minigames] Player lost: ' .. gameType)
    -- handle fail
  end
end)
```


---

# 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://octavista-development.gitbook.io/octavista-development/scripts/minigames/exports.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.
