Keep Calm and Concentrate
Games you can only win by concentrating, read from your brainwaves.
This one is private, so here are some screenshots instead of a link.
Keep Calm and Concentrate is a personal concentration trainer built on live EEG neurofeedback. The idea is simple: you can only do well in the games by concentrating. It’s my answer to an attention span worn down by short-form video, and a strictly non-medical self-training tool.
A local Python engine reads the EEG, filters it, computes a focus score against your own resting baseline and streams it to the browser. An adaptive threshold keeps the reward rate in a range you can actually train in, and blinks and muscle tension are filtered out so they can’t fake “focus”.
The games
- Glide. Your altitude follows your focus.
- Bloom. A garden grows while you stay rewarded.
- Focus Racing. A 3D racing game on four tracks, against opponents or your own best-lap ghost.
Honest science
Every score shows the numbers behind it. You pick what to train (sustained focus, less mind-wandering or faster recovery after a distraction) from five protocols, and a guided session runs a signal check, eyes-open and eyes-closed baselines, training blocks and a post-baseline. A recording mode captures EEG with markers while you work.
Hardware, the DIY way
It runs on a synthetic 19-channel source or replays recordings while the hardware comes together: a 19-channel gel cap waiting for an amplifier, and Bluetooth EEG headbands from an insolvent maker that I’m reverse-engineering to work with my own devices.
How it’s built
Python with NumPy and SciPy for the signal processing, a WebSocket server for the live feed, and plain HTML and three.js for the dashboard and games. Everything runs offline and the EEG never leaves the machine.