# How it works

There are unlimited rounds, each round’s period is about 3-7 days.\
There are 3 states in each round: Start -> Active -> End.

Players deposit tokens to join the round while the round state is Active.\
Player can join the round automatically and get the maximum tickets by using Auto Pool feature while the round state is Start.

Once the round is ended, our Upkeep in [Chainlink Keepers](https://docs.chain.link/docs/chainlink-keepers/introduction/) call to publicly “performUpkeep” function in the smart contract to:

* Recalculate tickets of players, reset Hold Tickets to zero if they do not hold enough token as recognized in the first deposit.
* Call to Chainlink VRF to get randomness numbers
* Find winners based on random numbers
* Reward to the prize winners

Reference: [Architect & Money Flow](/introduction/architect-and-money-flow.md)


---

# 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.delot.io/lottery-game/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.
