Chat Does Math

Overlay prototype with a test chat. Start a round, then type a sum that hits the target using the dice on screen. Simulated viewers play along so you can watch a whole round.

Stand-in for your game capture
Sound starts with your first click.

Test chat

not connected to Twitch

Overlay settings

Paste this into an OBS browser source, with your Twitch login in place of your_login.

How a chat message is checked

A viewer typesWhat happens
(20+6)*5Counted. The overlay shows the value and how far it is from the target.
20 x 6 ÷ 5 = 24Counted. x, × and * all multiply, ÷ and / divide, and a trailing answer is dropped and recalculated.
7 + 6 with no 7 rolledNot counted. Every number must be a die on screen, used once at most.
10 / 4Not counted. Division has to come out whole.
gg 10/10, +1Treated as normal chat and ignored.
!dice, !dice stopStarts or stops a round, from the broadcaster or a mod only. A stop also clears the overlay and pauses automatic rounds until the next !dice.

The first exact answer wins and ends the round. If the clock runs out, the closest answer is named and the overlay shows one solution. Messages are read by a small hand-written parser in core.js; chat text is never executed. This bench's chat is simulated; overlay/index.html reads the real thing. Still to come: mod permissions and 3D dice.