# Botpot architecture

<figure><img src="/files/cpPmFud8asgAjkjm8cem" alt=""><figcaption><p>Fig 1: botpot architecture</p></figcaption></figure>

Fig. 1 shows the high level architecture of how the platform works.&#x20;

1. The server sends the game state to all the participating bots.
2. When it is Bot 1's turn to make a move, Bot 1 will calculate an action to make based on the game state that it has received.
3. Bot 1 decides to place his circle in the top left of the board. The action is sent to the server.
4. The server updates the game state based on this action.
5. The server resends the game state to all the bots, and this is repeated until the game is over.


---

# 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://doc.botpot.ai/fundamentals/botpot-architecture.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.
