← All projects

Alchemist’s Trial

Play it · View on GitHub

What it does

A chemistry spell sandbox, and the first playable slice of a larger game where real skills are the magic system. You gather matter, write real chemical equations, and the simulation decides what happens: water douses fire, electricity splits water into hydrogen and oxygen, and a balanced 2H2 + O2 -> 2H2O makes a sharp pop that lights a torch.

Age bands set the difficulty, from picture tiles read aloud for young kids to full equations for older players.

One turn of the game
  1. Gather matterpick up elements
  2. Write an equationtiles or full notation
  3. Balance checkmust be real chemistry
  4. Rust/WASM simulationdecides what happens
  5. World reactsdouse fire, split water

Built for school Chromebooks

  • The simulation is written in Rust and compiled to WebAssembly.
  • The whole game is about 115 KB gzipped.
  • It collects no personal data, only anonymous play counts.
  • It deploys to Cloudflare Pages.

Tools

Rust, WebAssembly, wasm-pack, TypeScript, Vite, Cloudflare Pages