# How a Hold works

> Open a Hold, share its link, let your crew dock and deploy. A Hold stays between matches and keeps its record.

A **Hold** is your crew's place to play. You open it, share its link, and play
match after match in it, today or next week. The host decides who docks and what
is played.

Everyone who docks signs in, for free, and every account owns a Hold of its own;
a membership on Patreon owns more: see
[accounts and memberships](https://orbium.games/docs/platform/accounts).

## Open, share, deploy

1. **Open a Hold.** Press [Play](https://orbium.games/play), sign in, name it and choose Open Hold.
   You own it and host it. Share gives you its invite: a link, or a short code,
   copied without showing it (safe on a stream).
2. **Let your crew dock.** Your friends sign in, open the invite (or type the
   code on Play) and ask to dock. You let each one in, or turn them away.
   Someone turned away can be let back in later. Once let in, a Hold stays on
   their [Play](https://orbium.games/play) page, and its address works for them: nothing to keep
   (Forget takes it off). The address lets nobody else in, so showing it is
   safe.
3. **Build your unit, deploy.** Everyone builds a unit and gives the signal. You
   pick the match's settings and deploy.

Nothing to install. You are the same unit in every Hold, on any browser you sign
in with, and your name is your account's (change it on [Play](https://orbium.games/play)).

## The host

The host runs the Hold from its panel:

- **Crew:** who is in and who is waiting. Let in, turn away, undock.
- **Match:** the tournament it counts in (one of the running ones), the game
  (One Beam, for now), then the game's settings: the World (Earth, Desert, Mars
  or Ice), the island (a new one, or one played before, by its number), the
  Window's length, how the Hunter is picked and the light (sunrise, midday,
  sunset or random).
- **Tournaments:** start one (its name), rename it, end it, or pick the one the
  next match counts in. Only in the Hold, between matches.
- **New Code** (in Share): if the invite got out, take a new one. Everyone
  waiting to dock is turned away at once and the old invite stops working; your
  crew keep their place.

If the host leaves, after 30 seconds its owner takes over when docked, otherwise
the unit docked the longest.

## Owners and hosts

Whoever opens a Hold owns it, and only its owner, or a member the owner invited,
opens it again after its crew has gone (a Hold closes 5 minutes after the last
unit undocks). In the Hold's panel, the owner's **Hosts** list invites a docked
member to host: they can then open the Hold when you can't, or start it in their
own region (a Hold runs on the server nearest whoever opens it).

Every Hold has a **name** (say, "Friday crew": 3 to 24 characters), given when
it opens, to tell your Holds apart. Its owner can change it: Rename on its tile
on [Play](https://orbium.games/play), or HOLD NAME in the Hold's panel. Everyone docked sees it, and
so do its invited hosts. Its link and code stay the same.

## Matches

A **match** is one Hunter's round. It opens on the sky platform: the crew drop
off and scatter while the Hunter waits, then the hunt runs for the **Window**
(3, 5 or 10 minutes: only its length). When it closes, the camera finds the unit
that took it and the results stay up until the host goes on. With the Hunter on
**Rotate**, every unit hunts once, each round a match of its own (MATCH 2 OF 8),
scored and kept on its own; the host goes on to the next one, then back to the
Hold.

## Tournaments

A Hold plays in **tournaments**: every match counts in one, its points, wins and
numbers adding up in the tournament's standings. One always runs: the first
opens with the Hold, and when it ends the next one starts. A tournament lasts up
to 30 days; its host may end it sooner. A free Hold runs one tournament at a
time; a Backer's, three; a Host's and every higher tier's, six, and its host
picks which one the next match counts in.

The Hold's **Tournaments** tab lists the running ones (the day, the matches, who
leads), the ended ones it keeps and its years. Each one opens in the **record**:
its standings, its last match and its matches still kept, or a year's totals.

## What a Hold keeps

Every match's points stay in its tournament for good. Its full results (each
unit's line, as the results showed them) are kept for the last matches, by its
owner's tier: 30 free, 60 for a Backer, 200 for a Host and every higher tier.
Past that the oldest go; their points stay in the standings.

Ended tournaments are kept the same way: 10, 20 or 50 of them. Past that the
oldest go, and its totals stay in the Hold's totals for the year it ended in.

## Under the hood

Each Hold lives on the game server as Durable Objects (one for its address, one
for its game), which hold its state and talk to its crew over WebSockets. Who
owns and who may host each Hold is kept in one database with the accounts. The
[architecture](https://orbium.games/docs/developers/architecture) page tells the whole story.
