Skip to content
All work

Case study · 2026

Tujuh

Malay for “seven”, said too-jooh

A pocket version of the card game Flip 7, for playing with friends.

Tujuh on three phones: the game table mid-round, a card flipping up big, and the end-of-game standings
Role
Solo: design, mobile app, game engine and server
Platform
iOS and Android
Built with
Expo · React Native · TypeScript · Reanimated · Skia · Cloudflare Workers · Swift

My friends love Flip 7, but someone always had to keep score and we could not play apart. Tujuh deals, enforces every rule and adds up the scores, online with a four-letter room code, over FaceTime, or on one phone passed around the table.

Design

  • Styled like a kopitiam table: kaya cream, pandan green, sambal red for a bust and kaya gold for a Flip 7
  • Every flip is a small event. The card comes up big, turns over and drops into your line, with sound and haptics
  • Banners, badges like “1 away” and “Match point”, and a narrator line give the whole table something to react to
  • Your own bust odds are never shown, so the game still runs on gut feel
  • A daily deal: everyone gets the same deck and opponents that day, then shares their result. Stats keep a play streak and an activity calendar

Engineering

  • One pure TypeScript rules engine, a reducer with a seeded RNG and no dependencies, shared by the phone and the server so the rules can never drift
  • Online rooms on Cloudflare Workers, one Durable Object per room over hibernating WebSockets. Phones only ever see a redacted view
  • Lock your phone or lose signal and you rejoin straight into the current state
  • Simulation tests play hundreds of random games, checking no card is lost or duplicated and every score adds up
  • Native Swift modules for SharePlay over FaceTime and a Lock Screen Live Activity with Hit and Stay

Details

  • The flip

    Every Hit is a reveal: the card comes up big, turns over and drops into your line.

  • Flip 7

    A seventh new number bursts into a banner and confetti, then the winner screen.

  • Bust

    A duplicate number greys out the row under a red banner. The whole table groans.