Skip to content

Game Table Tally

A scorekeeper for the game table that adds up each round by the game's own rules.

It keeps score for Flip 7, Skyjo and Wizard, card games people already own. One phone is passed around, each player's round goes in with a few taps, and the app keeps the running totals and says who is ahead. It is free at gametabletally.com, installs from there to a phone's home screen, and works with no connection after the first visit.

Why I built it

My friends and I play these games together, and we kept score with pen and paper, adding up each round by hand. An app that knew each game's rules and did the adding felt like the better way, so I built one for me and my friends to use, and for anyone else who keeps score at a table.

Ann's turn in a round of Flip 7, with the 7, 9 and 12 cards and the plus 10 card picked, for 38 points this roundAnn's turn in a round of Flip 7, with the 7, 9 and 12 cards and the plus 10 card picked, for 38 points this round
The scores after the round, Ann first with 38, Ben second with 16 and Cat third with 0The scores after the round, Ann first with 38, Ben second with 16 and Cat third with 0
A round of Flip 7 being scored, and the scores after it.

How it is built

  • The rules run on the phone. The rules for every game are one TypeScript package with no dependencies. Its function takes a game as plain data and returns the scores, reading no clock and keeping nothing between calls. The app runs it on the phone, so a table with no signal still keeps score.
  • Games are saved as they were entered. Each game is saved in IndexedDB as its rounds were entered, with no total stored beside them. The totals are always worked out from the whole history, so a round changed afterward still adds up right.
  • A version of the rules never changes. Every change to how a game scores is a new version of its rule set, a correction included, and a test pins each released answer, so a version always means the same rules.
  • It works with no connection. A service worker keeps every file of the app on the phone after the first visit and answers every page from there, so the app opens with no signal. A newer build waits for the player to take it.
  • Each page sends only its own screen. On a first visit, a page sends the code for its own screen and no other. Once the app is kept on the phone, the rest loads from there, so a screen not yet opened still opens at once.
  • Every change passes its checks first. Every pull request runs browser tests on a desktop and a phone profile, an axe audit and a target size check of each page, and a Lighthouse audit that holds every page to 100 for accessibility. A merge is deployed only once every check has passed.
  • It is built on my design kit. Its colors, buttons, app frame and tab bar come from my design kit, with its own typeface, a raised edge under each key and a background for each game laid over the kit.
  • TypeScript
  • React
  • Progressive web apps
  • Vite

Decisions

The rest are in Game Table Tally decision records, opens in a new tab on GitHub.

More projects

The projects page has the others, each with the problem it solves and the decisions that shaped it.