> For the complete documentation index, see [llms.txt](https://immortal-snail.gitbook.io/immortal-snail/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://immortal-snail.gitbook.io/immortal-snail/immortal-snail.md).

# Immortal Snail

## Immortal Snail

<figure><img src="/files/cXtGGLZIRg8qR55dGR2O" alt=""><figcaption></figcaption></figure>

Immortal Snail is a fully on-chain survival game based on smart contract. Purpose of the game is trying to proof that, for small scaled games, it's possible to eliminate need for traditional servers, performing all in-game operations directly on the blockchain, therefore create completely safe enviroment. Smart contract acts as the backbone, managing game mechanics without relying on a central server, providing a truly decentralized and secure online gaming experience. Meanwhile the game itself read the data from blockhain to simulate and create user friendly, fun experience to writing to the blockchain.

***

### Game Concept and Progress

Each time, snail begins with a leaping into the random position in the air and wait on the position for a few seconds to give player a react chance before smashing the ground. After the snail hits the ground, NFTs located in the snail's impact zone will be death and eliminated from the game. Over time, the snail's impact radius grows larger, making it progressively harder to survive. Players can move their NFTs to different zones by submitting transactions (by left clicking any available position on the world to create a transaction) to the smart contract. They are free to move as many times as they wish, but each move requires a separate transaction. The smart contract processes these transactions, updating the players' locations directly on the blockchain. The game continues until only three alive NFTs remains, and the final 100 NFT share rewards based on their rankings.

***

### Game Mechanics

1. **Spawn:** At the start of the challange, characters(NFTs) are randomly spawned in different locations.
2. **Snail Movements:** The snail’s movements are determined by a smart contract that assigns random coordinates. The snail ascends into the air at the assigned location, waits for a few seconds to allow players to react and move, and then falls. Any NFTs in the landing zone are death.
3. **Movement:** Players can move their NFTs to any desired zone by submitting a transaction (left clicking any position on the world will create a transaction). The smart contract processes these transactions and updates NFT's locations on the blockchain.
4. **Elimination:** When the snail smash the ground, NFTs within the impact zone are eliminated. As time passes, the snail’s impact radius expands, making it increasingly difficult to avoid.
5. **Endgame:** The game continues until only three players remain. The final 100 players share rewards based on their rankings.


---

# 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://immortal-snail.gitbook.io/immortal-snail/immortal-snail.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.
