diff --git a/src/games/harmonie/config.ts b/src/games/harmonie/config.ts index be6e2cc..ba9e506 100644 --- a/src/games/harmonie/config.ts +++ b/src/games/harmonie/config.ts @@ -1,17 +1,19 @@ import { GameConfig, ScoringCategory } from "../../types"; const BASE_CATEGORIES: ScoringCategory[] = [ - { id: "arbres", label: "Arbres" }, - { id: "montagnes", label: "Montagnes" }, - { id: "champs", label: "Champs" }, - { id: "batiments", label: "Bâtiments" }, - { id: "eau", label: "Rivière" }, - { id: "animaux", label: "Animaux" }, + { id: "arbres", label: "Arbres", icon: "TreePine", color: "#16a34a" }, + { id: "montagnes", label: "Montagnes", icon: "Mountain", color: "#64748b" }, + { id: "champs", label: "Champs", icon: "Wheat", color: "#d97706" }, + { id: "batiments", label: "Bâtiments", icon: "Building2", color: "#dc2626" }, + { id: "eau", label: "Rivière", icon: "Waves", color: "#0ea5e9" }, + { id: "animaux", label: "Animaux", icon: "Rabbit", color: "#a16207" }, ]; const NATURE_SPIRIT_CATEGORY: ScoringCategory = { id: "esprits_nature", label: "Esprits de la nature", + icon: "Sparkles", + color: "#8b5cf6", }; export const harmonieConfig: GameConfig = { diff --git a/src/pages/GameOver.tsx b/src/pages/GameOver.tsx index c657bf5..51a184a 100644 --- a/src/pages/GameOver.tsx +++ b/src/pages/GameOver.tsx @@ -137,7 +137,7 @@ export default function GameOver() { const topWinner = totals.find((t) => t.isWinner)?.player; return ( -
| + Manche + | + {session.players.map((p) => ( ++ {p.name} + | + ))} +
|---|---|
| + #{round.roundNumber} + | + {session.players.map((p) => { + const s = round.scores.find( + (sc) => sc.playerId === p.id, + ); + return ( ++ {s ? s.score : "—"} + {s?.caboCall === "success" && ( + + ✓ + + )} + {s?.caboCall === "fail" && ( + + ✗ + + )} + {s?.kamikaze && ( + + K + + )} + | + ); + })} +
| + Total + | + {session.players.map((p) => ( ++ {calculateTotalScore(p.id)} + | + ))} +