# Game Architecture

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf4YfQqt_6jLu5Sp6xwjBzntWg6AlducUTBAh7iSkWYMOndfBxfiSWYYRwpBZmAw8iHu6CNWaR5RSAnqDWjzqrUNpbE1p2tX1TpaewXxnnPlg4ae6aeH50cMEu7l7Giy5GTeHY70Q?key=weo2vl887S6ZT9ibnwfRY5gJ" alt=""><figcaption><p>For detailed information, refer to the [ <a href="https://sovrun.notion.site/Chain-Tactics-Wiki-1617ef7904b28023b8d6d23291b1923e">Chain Tactics Game Wiki</a> > Architecture Section]</p></figcaption></figure>

Chain Tactics is built on a modular architecture that ensures seamless on-chain gameplay while offering flexibility for modding and development. Powered by the Sovrun SDK, it uses the MUD Engine for on-chain data management and the Game IDE Integrator for Unity compatibility, creating a robust decentralized framework (see [Sovrun SDK](/build-with-sovrun/chain-tactics/sovrun-sdk.md) for details). The game’s architecture is also expandable to other EVM chains, allowing developers to deploy Chain Tactics across multiple blockchain networks for greater scalability and accessibility.&#x20;

#### Key Components

The key components and their interactions are as follows:

* **Onchain Logic:** Game state is stored in MUD (Modular Universe Data) tables, managed by the MUD Engine, and updated via smart contracts, ensuring transparency, immutability, and auditability of all game actions.
* **Headless Client:** Written in C#, this component bridges on-chain logic with external applications. It abstracts blockchain interactions, enabling developers to create custom frontends, AI agents, or automation tools without deep blockchain expertise, enhanced by the Game IDE Integrator’s support for development workflows.
* **CTServer:** Manages off-chain coordination between all clients, ensuring smooth communication and synchronization without overloading the blockchain with non-critical data.
* **CTServerContext:** Acts as a bridge, coordinating both the blockchain interactions (via Nethereum) and the off-chain coordination handled by the CTServer.
* **Nethereum:** A C# library to sign Ethereum blockchain transactions, providing secure and efficient interaction with the network.
* **Unity Frontend:** The default user interface for players, rendering the game in a visually engaging format, linked to the MUD Engine via the Game IDE Integrator. Developers can replace or extend this with custom frontends using the headless client.

<br>


---

# 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://docs.sovrun.org/build-with-sovrun/chain-tactics/game-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.
