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.
Paste this into an OBS browser source, with your Twitch login in place of your_login.
| A viewer types | What happens |
|---|---|
(20+6)*5 | Counted. The overlay shows the value and how far it is from the target. |
20 x 6 ÷ 5 = 24 | Counted. x, × and * all multiply, ÷ and / divide, and a trailing answer is dropped and recalculated. |
7 + 6 with no 7 rolled | Not counted. Every number must be a die on screen, used once at most. |
10 / 4 | Not counted. Division has to come out whole. |
gg 10/10, +1 | Treated as normal chat and ignored. |
!dice, !dice stop | Starts 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.