> For the complete documentation index, see [llms.txt](https://codyfight.gitbook.io/white-paper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codyfight.gitbook.io/white-paper/technical-summary/infrastructure/game-api.md).

# Game API

The game API documentation is maintained on the official Codyfight [website](https://codyfight.com/api-doc).

## **GameState**

Each game in Codyfight has its own data object that holds the current state of the game and receives the name of GameState, containing the following information:

* **State**: status, mode, round - basic summary information of the current game.
* **Players**: CAgents participating in the current game and their stats.
* **Special agents** - currently spawned special agents, their stats, coordinates, and configuration.
* **Map** - Tilemap structure with configuration for each tile (empty, obstacle, wall, exit gate, ...).
* **Verdict** - current game's verbal summary.
