Skip to content
davis7dotshPublic

About

A two-player card game of constellations, played in the browser

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Asterism

A two-player card game played in the browser. You lay cards on your own 8 × 4 mat, link them into constellations, then trace a path through a constellation to fire every card on it.

Game design by Jamie. Created in T3 Code.

Your mat, close up

Both mats at once

The table has three views: your mat close up, theirs, or both at once with condensed cards. Hover a card in any of them to read it in full.

How it plays

  • Play one card a turn onto your own mat: upright, reversed, or face down as a blocker.
  • Cards link through ports. Two face-up cards in the same row or column link when their ports face each other and nothing sits between them, however far apart. Linked cards form a constellation.
  • Invoke a constellation by tracing a path through it. Every card on the path fires in order. A constellation's power sets how long the path can be.
  • You never link to the other mat. You win races and break theirs with effects that move, flip, swap and destroy cards, or by planting a face-down card in the gap of a long link.
  • Where a card sits matters. Some cards act on their whole row or column, reward a leap across empty cells, slide to the far edge, or care about edges and corners.
  • Every deck has its own win condition, a Great Work both players can see from the start.
Tracing a path Drag across cards to trace a path; the numbers are the order they fire in A card up close Hover a card and it flies out to full size with its rules
A placement that links A placement that links lights the new link A placement that links nothing One that links nothing is flagged in red, and still allowed

The cards

77 cards: 54 lesser cards across four suits (Ember, Tide, Root, Veil), 15 suitless majors and eight Great Works. The frames are drawn as coloured pencil; the pictures are gouache paintings laid stroke by stroke by an offline painter in this repo.

Every card

Around the table

Lobby Open a room and share its code, or practise against the bot Winning Completing a Great Work
Library The Library: every card, the rules and a glossary A card in the Library One card: its suits, ports and the decks it is in
Deck builder Eight preset decks and a deck builder Design Lab The Design Lab: open rules questions you can pick an answer to and play

What is here

  • Real-time rooms by code, with reconnect, rematch and spectators
  • A practice bot that runs in the browser with no server
  • Eight preset decks, a deck builder, and rules variants (mat size, flip cost and more) per room
  • Keys under the left hand for every action, so the other stays on the mouse
  • A pure, deterministic rules engine with a seeded RNG, shared by client, server and bots
  • A headless CLI that plays, soaks and screenshots games

Stack

  • Bun workspaces, driven by Vite+ (vp)
  • TypeScript and Effect v4: services, Schema for every wire and storage type, errors as values
  • SvelteKit and Svelte 5 for the client
  • Effect RPC over WebSockets; Postgres as the source of truth and, through LISTEN/NOTIFY, the pub/sub between server instances

Run it

vp install
vp run dev                # web dev server; /practice needs no game server
vp run stack -- --multi   # Postgres + two server instances + production web, prints URLs
vp run play -- help       # headless CLI: play, bots, soak, screenshots
vp run ready              # format, lint, type-check, every test, then every build

Layout

Path What
packages/game Rules engine, card pool, decks, bots. No IO
packages/protocol RPC group and wire schemas
packages/card-art Card renderer (SVG), the painter and the painted art
apps/server Real-time server
apps/web SvelteKit client: lobby, rooms, Library, deck builder, Design Lab
tools/play Headless CLI for people and agents

The rules and the reasoning behind them are in docs/DESIGN.md. Each package has its own README.

About

A two-player card game of constellations, played in the browser

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages