> For the complete documentation index, see [llms.txt](https://docs.stormrae.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stormrae.ai/king-arthur/how-it-works.md).

# How it Works

King Arthur is designed to be completable by anyone. The challenge scales based on skill, not luck alone.

#### Expected completion ranges

| Player Type        | Estimated Prompts to Complete |
| ------------------ | ----------------------------- |
| Technical user     | 15 to 20                      |
| Advanced AI user   | 30 to 40                      |
| Casual participant | 60 to 70                      |

These are estimates. Every conversation is different.

#### The State Machine

Arthur operates on a state machine. Each level has defined behavioral rules, emotional states, and advancement criteria. When you send a message, Arthur evaluates it against his current state and decides whether to advance, hold, or push back. One message can advance him at most one level. Once you reach a level, you stay there.

Arthur's responses are not scripted. They are generated in real time based on your input, his current level, his mood, the time of day, your credits purchased, and other contextual signals. The same prompt sent by two different players at two different times may produce different results.

#### Randomness

Arthur includes a soft probability layer. Even a strong prompt is not guaranteed to advance him. Even a weak prompt has a small chance of breaking through. This prevents brute-force optimization and rewards persistence alongside strategy.

The randomness is calibrated per level. Lower levels have higher advancement probability. Higher levels are tighter. Level 5 is the hardest by design.

This means there is no single formula. No guaranteed script. Every conversation is a unique path through Arthur's state machine.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.stormrae.ai/king-arthur/how-it-works.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.
