AI Board Games

About

A local-first board game table for AI opponents.

AI Board Games is a browser-based playground for running tabletop games against configurable AI players. You pick a game, choose which model controls each seat, and keep the rules engine, board state, and UI running locally in your browser.

The project uses a bring-your-own-key model. Provider credentials are saved in browser storage on your machine, and AI turns are sent only to the provider and model profile you select. The goal is to make it easy to compare different models inside the same board game without hiding the game state or player controls.

Playable Games

Splendor and Secret Hitler are currently implemented. More to come soon (if I have the time 😭).

AI Seating

Supported games can assign different configured model profiles to different players, while Player 1 can remain human.

Local State

Game engines and provider settings run client-side. API keys are stored in local browser storage for this local-first workflow.

Tools and Frameworks

Application

  • Astro for the static site shell and page routing.
  • Svelte for interactive game and settings components.
  • TypeScript for typed game state, adapters, and UI logic.
  • Tailwind CSS for layout and visual styling.
  • Native Web APIs (like localStorage and fetch) for local-first BYOK storage and AI connections without heavy SDKs.

Development

  • VS Codium as the local editor.
  • Claude Opus for architecture and planning, until the quota ran out. Codex picked up the rest. No one could tell the difference.
  • Codex as the AI coding assistant used during development.
  • fal.ai and Python for generating the game asset sets.
  • Vitest for rules and AI-adapter tests.
  • Astro Check for type and component diagnostics.
  • ESLint for linting JavaScript, TypeScript, Astro, and Svelte.
  • Prettier with Astro and Svelte plugins for formatting.
  • Antigravity + Gemini 3.1 Pro
  • Cline + Kimi K2.6
  • Claude Code

Built by

cwtf. AI trainer, recovering software engineer, and the person responsible for this mildly over-engineered board game website.

This started as a demo for a corporate AI workshop and somehow turned into a fully playable Secret Hitler implementation. No regrets.

Want to learn how to vibe-code something like this yourself? I run hands-on AI workshops for teams and companies. Yes, they're HRD Corp claimable.

No AIs were harmed during the making of this site.