back to the projects

Family Scores

Dad's score sheet, on a phone

Family Scores on three phones: the home screen with a belote game in progress, the score sheet with the number pad open, and the win table in the stats
Family Scores

Overview

The family card game score sheet, moved to a phone on the table. It knows four games: belote, 5 rois, Skull King and 6 qui prend. You pick the game and the players, then write each round on a big number pad. It adds up the totals, shows who leads, ends the game at the right round or score, and keeps every finished game for the stats. Anyone can read it. Writing needs the family code, typed once per phone.

Why I built this

My dad keeps our card game scores on paper. This is a Christmas present for my parents: a QR code printed on one card of the belote deck opens the site, and his sheet from 14 November, three belote games of 12 rounds, is already in, round by round.

Features

  • Belote in a few taps. Touch the team you are scoring and the other one gets 162 minus your points, which you can still correct. +20 belote, Capot (252 to 0) and Dedans (0 to 162) are one button each.
  • Skull King adds itself up. Each player's bid goes in before the round, tricks and bonus after, and the score follows the classic rules: 20 per trick on a made bid, minus 10 per trick off, and plus or minus 10 times the round number on a bid of zero.
  • Several phones at the table. Each one refreshes every 5 seconds while nobody is typing, so the person scoring and the people watching see the same sheet. Touch a past round to fix or delete it.
  • Made for my parents. Buttons at least 56 px tall, text at least 18 px, few screens and no sign-up. Pages are rendered on the server and the forms work without JavaScript.
  • Stats per game. Wins and win rate per player, best and worst totals, best round, longest winning streak and the best belote pairs. An all-games tab counts total wins and who plays the most.

Tech stack

Frontend

SvelteKit Svelte 5 TypeScript

Backend

Node (adapter-node) SQLite better-sqlite3 Vitest

Infrastructure

Docker GitHub Actions Hetzner Cloudflare R2 backups