8 players possible
This commit is contained in:
@@ -42,7 +42,7 @@ Navigation is a simple `useState<Page>` state machine in `App.tsx` — no router
|
|||||||
| Page | Key | Description |
|
| Page | Key | Description |
|
||||||
|------|-----|-------------|
|
|------|-----|-------------|
|
||||||
| Title screen | `'title'` | Shown on first load (no saved game). "New Game" button navigates to setup. |
|
| Title screen | `'title'` | Shown on first load (no saved game). "New Game" button navigates to setup. |
|
||||||
| Player setup | `'setup'` | Enter 3–6 player names, then "Start" saves the game and goes to scoresheet. |
|
| Player setup | `'setup'` | Enter 3–8 player names, then "Start" saves the game and goes to scoresheet. |
|
||||||
| Score sheet | `'scoresheet'` | Shows per-round scores and running totals. Small red "New Game" button (top-right) opens a confirmation dialog before clearing state and going to setup. "Score Round" (footer) → enter scores. |
|
| Score sheet | `'scoresheet'` | Shows per-round scores and running totals. Small red "New Game" button (top-right) opens a confirmation dialog before clearing state and going to setup. "Score Round" (footer) → enter scores. |
|
||||||
| Enter scores | `'enterscores'` | Form to enter each player's score for the round. "Submit" → back to scoresheet. |
|
| Enter scores | `'enterscores'` | Form to enter each player's score for the round. "Submit" → back to scoresheet. |
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ On mount, `App.tsx` checks `localStorage` for a saved game and jumps straight to
|
|||||||
|
|
||||||
## Game rules
|
## Game rules
|
||||||
|
|
||||||
- Each round every player scores some points; all players' scores in a round must sum to **-110**
|
- Each round every player scores some points; scores must sum to **-95** (3 players), **-110** (4–6 players), or **-100** (7–8 players)
|
||||||
- Each player starts at 0; the game ends when any player reaches **-200**
|
- Each player starts at 0; the game ends when any player reaches **-200**
|
||||||
|
|
||||||
## Data model
|
## Data model
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export default function PlayerSetup({ onStart, initialNames }: Props) {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
{names.length < 6 && (
|
{names.length < 8 && (
|
||||||
<div className={styles.addRow}>
|
<div className={styles.addRow}>
|
||||||
<button className={styles.addBtn} onClick={addName}>+</button>
|
<button className={styles.addBtn} onClick={addName}>+</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user