Inspiration
Algebra is usually taught on paper: copy the line, do something to both sides, copy it again. For a lot of kids the bookkeeping is the hard part, not the thinking. We wanted to try the opposite: you say the move ("subtract five from both sides") and the board does the writing, so all your attention goes to deciding what to do next. And because a list of exercises doesn't make anyone want to keep going, we wrapped it in a story: a worker bee with one short summer, trying to reach the next hive before her days run out.
What it does
Free Bee is a voice-first algebra game. You tap Tap to talk and work out loud:
- Say a move: "subtract 6 from both sides", "divide both sides by 4", "combine like terms", "distribute". The game shows the step on hexagon tiles and checks it before recording it.
- It never solves anything for you. Prompts name the kind of move, not the answer, and hints suggest one move at a time.
- Every correct step is labeled with the property you used, such as the Subtraction Property of Equality, and your first use of each becomes a knowledge card you keep.
- Twelve levels follow an Algebra 1 course: one- and two-step equations up to variables on both sides, formulas, inequalities, compound and absolute-value inequalities, word problems, lines, and systems of equations.
- Each level is a hive on the bee's journey, with story problems, practice and foraging. Solving earns energy; every problem costs a day of summer.
- It works on phones and laptops in the browser, and in VR on Meta Quest with the same look and the same voice controls. There's a keypad for anyone who can't use a mic.
For a system like
$$ y = 2x + 1,\qquad x + y = 10 $$
you might say "substitute", "combine like terms", "subtract 1 from both sides", "divide both sides by 3", "substitute" again, and the game finishes with \( x = 3,\ y = 7 \).
How we built it
- Math engine (TypeScript, no math libraries): exact rational arithmetic, a parser for spoken and typed math, and a validator that accepts a step only if the new line has exactly the same solutions as the old one. That means any correct step counts, not just the expected one. Systems are solved as sets of points (one point, a whole line, or none), and formulas are checked by substituting exact random values.
- Speech: the browser's own speech recognizer where there is one. Where there isn't (Chrome and other browsers on iPhone), the page detects when you start and stop talking, records 16 kHz audio, and sends it to Google Cloud Speech-to-Text with hints for math words. No audio is stored.
- Web app: React and Vite, KaTeX for the math, built from a designer's equation board and UI kit.
- Quest / WebXR: three.js, drawing the same board on a canvas in passthrough mixed reality. We built and tested it with Meta's IWER emulator and used the real headset only for final checks.
- Hosting: a small Node server on Google Cloud Run with rate-limited speech transcription, at freebee.news.
- Tests: 167 Vitest tests covering the math, the spoken grammar, full spoken solutions, and every story problem's answer.
Challenges we ran into
- Checking without cheating. It's easy to accept only "the" next step. Making the engine accept any valid step and reject invalid ones, including sign flips on inequalities, extraneous solutions with absolute values, and systems where one equation gets dropped, took a real solver, not pattern matching.
- Real voices. Recognizers mishear ("five" becomes "hive"), restart on their own, and sometimes die silently. We added self-repair ("subtract seven, sorry, nine"), safe restarts, and a server fallback for browsers with no recognizer.
- Not giving the answer away. An early version helpfully suggested "try saying 'subtract 6 from both sides'", which was the answer. Prompts now name only the kind of move.
- One look everywhere. The browser and the headset started out looking like two different games. We rebuilt both from the same design tokens so a kid switching devices sees the same board.
Accomplishments that we're proud of
- A full Algebra 1 path through systems of equations, all playable by voice, where every step is truly checked.
- The same game on a phone, a laptop and a Quest headset.
- Feedback that teaches: property labels, knowledge cards, and hints that point without telling.
What we learned
Voice changes what's hard about math. Once the writing is gone, the gaps that remain are real understanding gaps, like knowing why you divide or when the sign flips, and those are exactly what a game can respond to. We also learned how much careful engineering "just accept any correct step" takes.
What's next for Free Bee
- The rest of Algebra 1: functions, exponents, polynomials and quadratics (the engine needs square roots and graphs for those).
- Graphing on the Quest: pinch to place points and draw lines.
- Art for each hive, sound, and a name for the bee.
- Testing with kids in a classroom. ## What we learned

