Skip to content
‹ All case studies
Mobile (Android)

karata

Two card games for Android, Mysterio and Classic, to play with friends on one phone or against Easy, Medium and Hard bots.

Year
2026 · version 1 finished, Play Store release next
Stack
Flutter · Dart · Riverpod · Android · GitHub Actions
karata: a Mysterio turn against three bots

The problem

I wanted to play our family card games anytime, even with no one around, so I built bots worth playing against.

My role

Solo project: I wrote the rules spec, designed the screens, planned every step and reviewed every pull request, building with an AI coding assistant (Claude Code) inside a strict test-and-CI workflow.

Key decisions

  1. Pure-Dart engine

    The game rules live in a separate package with no Flutter imports: the state is immutable, and every move returns a new state. The rules are tested without any UI.

  2. Seeded randomness

    Every shuffle comes from a seeded random generator whose state is a single number, so any game can be replayed exactly and a saved game continues the same way.

  3. Fair bots

    Each player and each bot only sees its own hand. Hard bots remember only the cards the table actually saw, so they never cheat.

Screens

  • karata setup screen: Mysterio chosen, four seats with Amina as a human and Bob, Chris and Bea as Medium bots

    Game setup

  • karata: a Mysterio turn against three bots

    A Mysterio turn

  • karata Classic with four players: the first trick, Bea winning with the king of spades, Amina to play

    A Classic trick

  • Learn Karata Mysterio, step 1 of 8: your hand and the top card

    How to play

Results

  • 350+automated tests, including stress tests that play 32,000 random games and check every move
  • 4languages: English, French, Kirundi, Swahili
  • v1signed release build, Play Store release coming next

What I learned

  • Writing the rules down before coding, and turning every example into a test, saved me from countless bugs.
  • A bot that's fun to play against is a design problem, not just an algorithm: it must be strong but never cheat.