> ## Documentation Index
> Fetch the complete documentation index at: https://docs.platform.gamezop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Battles overview

> See how a Gamezop Battle takes users from matchmaking to gameplay and final results.

Licensed

Battles are real-time multiplayer experiences. Users are matched with one or more other players, play the same game, and are ranked by their scores. Gamezop provides the complete Battle experience, including matchmaking, the countdown, live opponent scores, and result screens.

A **match** is one Battle between the players matched together, from the countdown until the final results. When a match ends, players can start a new one.

Battles work with two types of games: sync games, where players share one board, and async games, where each player plays on their own and competes on score. See [Types of Battle games](https://docs.platform.gamezop.com/publishers/gamezop/offerings/battles/types-of-games.md) for the difference.

Here is what your users see during a match.

## Matchmaking

When a user starts a Battle, Gamezop looks for opponents and shows a matchmaking timer.

![Battle matchmaking screen showing that Gamezop is finding opponents](https://mintcdn.com/gamezop/41-X5ypvJ2MF-bmi/images/gamezop/battles/matchmaking-finding-opponents.png?fit=max\&auto=format\&n=41-X5ypvJ2MF-bmi\&q=85\&s=ca1dae104d8624fc727b1b8564dd8757)

***

## Match found

If enough opponents (You configure each match in roomDetails, including the minimum and maximum number of players, how long matchmaking runs, and the names and photos shown for your players.) are found, the matched players see one another and a countdown before the match begins. If not, the user can try again.

![Battle screen showing two matched players and a countdown before gameplay](https://mintcdn.com/gamezop/41-X5ypvJ2MF-bmi/images/gamezop/battles/matchmaking-found-countdown.png?fit=max\&auto=format\&n=41-X5ypvJ2MF-bmi\&q=85\&s=bff65d953006131b5c0c1f512a638bb0)

Opponent found: the players see the countdown before the match begins.

![Battle screen showing that no opponent was found with a Try again button](https://mintcdn.com/gamezop/41-X5ypvJ2MF-bmi/images/gamezop/battles/matchmaking-no-opponent.png?fit=max\&auto=format\&n=41-X5ypvJ2MF-bmi\&q=85\&s=6430d072a8e1bc3199037062cc50facc)

No opponent found: the user can select Try again to start matchmaking again.

***

## Gameplay

When the countdown ends, all the players start playing. What they see depends on the [type of game](https://docs.platform.gamezop.com/publishers/gamezop/offerings/battles/types-of-games.md):

* **Sync games**, such as Chess: the players play together on the same board, so each player sees their opponents' moves as they happen.
* **Async games**, such as Bottle Shoot: each player plays their own game. A strip at the top of the screen shows the scores of everyone in the match, updated in real time.

The screenshot below shows an async game.

![Battle gameplay screen showing player scores and the game timer](https://mintcdn.com/gamezop/41-X5ypvJ2MF-bmi/images/gamezop/battles/battle-gameplay.png?fit=max\&auto=format\&n=41-X5ypvJ2MF-bmi\&q=85\&s=4c12569e1efc3b6f8cd306e0a91a3aa6)

***

## Waiting for opponents

A match ends as soon as the final ranking can no longer change. Until then, players who have finished wait on this screen, where they see the live ranking and the current score of each player still **In game**.

For example, Player A runs out of attempts with a score of 100:

* **If Player B is still playing with a score of 80**, B could still overtake A. A waits until B finishes or passes them.
* **If Player B already has a score of 120**, the ranking is settled, since B's score can only go up. The match ends for both players right away, even though B hasn't finished, and there is no waiting screen.

The same rule applies with more players. In a game of Ludo, for example, the first player to finish still waits while the others play on for second place and below.

![Battle waiting screen showing live rankings while opponents are still playing](https://mintcdn.com/gamezop/41-X5ypvJ2MF-bmi/images/gamezop/battles/opponent-still-playing.png?fit=max\&auto=format\&n=41-X5ypvJ2MF-bmi\&q=85\&s=d9eb31e6e66288ed6968f233cd543882)

***

## Match result

When the match ends, Gamezop shows the final ranking. Players with the same score share a rank. For example, if 3 players score 100, 100, and 80, their ranks are 1, 1, and 3.

Each player sees one of these results:

* **You Won:** the user ranks first.
* **It's a Draw:** the top players finish on the same score.
* **Try Again:** another player ranks higher than the user.

![Battle result screen showing You Won and the final ranking](https://mintcdn.com/gamezop/41-X5ypvJ2MF-bmi/images/gamezop/battles/result-you-won.png?fit=max\&auto=format\&n=41-X5ypvJ2MF-bmi\&q=85\&s=684ba62b19084012b84c64f667c10ec8)

You Won

![Battle result screen showing that the match is a draw](https://mintcdn.com/gamezop/41-X5ypvJ2MF-bmi/images/gamezop/battles/result-draw.png?fit=max\&auto=format\&n=41-X5ypvJ2MF-bmi\&q=85\&s=63feb56ffaa5559fd4a4cc3534be4a3d)

It's a Draw

![Battle result screen showing Try Again and the final ranking](https://mintcdn.com/gamezop/41-X5ypvJ2MF-bmi/images/gamezop/battles/result-try-again.png?fit=max\&auto=format\&n=41-X5ypvJ2MF-bmi\&q=85\&s=60853919f8fc2f411e353f6306d963ff)

Try Again

You can choose what the button at the bottom of the result screen does with the [`text` field](https://docs.platform.gamezop.com/publishers/gamezop/offerings/battles/integration/overview#optional-roomdetails-fields) in `roomDetails`.

***

**Next steps**

> [card] [Types of Battle games](https://docs.platform.gamezop.com/publishers/gamezop/offerings/battles/types-of-games.md)
>
> Learn the difference between sync and async Battle games.

> [card] [Integrate Battles](https://docs.platform.gamezop.com/publishers/gamezop/offerings/battles/integration/overview.md)
>
> Set up Battles, match outcome APIs, and client-side callbacks.

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.