Live game (offline scorekeeper)
When you're sitting at a table with physical dice, the app works as just a scoring notebook. Each player rolls their own dice, and someone (typically you as the game creator) plays scorekeeper and records results.
Creating a game
- Lobby → click Live game
- Enter player names (2–6) — your name is always first (scorekeeper)
- Click Start game → the game is created in active state
Note: an offline game isn't tied to the network — players don't need PMGclub accounts. Just names.
Recording scores
In an active game you see a table of 9 categories × N players:
- Click a cell → opens a score-entry modal
- Enter a number, the app validates it's valid for that category
- Save → the cell fills in
Validation
The app checks the number is legitimate:
- Ones/Twos/Threes/Fours/Fives/Sixes — multiples of the value, max 6× value
- Paša — 0 or even number 12–30
- Řada — 0 or 21
- Pyramida — 0 or sum 10–32
If you enter an invalid value, the app shows a warning below the input and won't save.
Editing a recorded score
If someone makes a mistake, you can overwrite:
- Click a filled cell → modal with the current value
- Change the number and click Save → overwrites
- Or click Clear → removes the entry (cell back to empty)
Note: only the scorekeeper (game creator) can edit. Other players see the table in read-only mode.
What the app doesn't do
In offline mode the app doesn't roll dice — players do that themselves. The app also:
- Doesn't auto-calculate from rolled dice — you enter the result manually
- Doesn't notify others (no "it's Honza's turn") — you're at the table, you see it
- No chat — you talk in person
Special use cases
"Online table" — multiple people, one device
You can play with several online friends through a single tablet/laptop — someone enters names, rolls physical dice, others just watch the screen. Scores appear in your profile stats.
Restaurant / travelling
The app works on mobile — short clicks, table fits a small screen.
No internet
Offline game requires internet to save scores to the server (Supabase). If a true offline mode is needed, local-storage caching could be added later.
End and delete
- End game (creator) → determines a winner from the current total, game moves to Finished
- Delete game (creator) → removes the record entirely
Note: offline games don't count toward profile statistics (no user_id binding, just names).
Tips
- Name in the header — if someone has a long name, shorten it (e.g. "Honza" instead of "Jan Novotný"). The table header has to fit.
- Consistent rules — everyone at the table must know that 5 in Twos doesn't exist. When in doubt, check the rules.
- Mobile layout — a table with 5+ players doesn't fit a mobile width. Rotate to landscape or play on a tablet.