I built My Color Blind Test, a browser-based quiz with 12 original dot plates and two practice scores. It’s a small project, but it raises a few frontend questions that don’t come up in a typical multiple-choice quiz. The biggest one: what happens when the pixels themselves are part of the question?

Separate quiz data from quiz state

The useful architecture here is a plate catalog, a run in progress, and a score derived from that run. If I were starting from a blank file, I’d give each plate a stable ID and a scoring category, then key responses by plate ID rather than by screen position. That way, moving a plate in the sequence doesn’t change which answer belongs to it.

For scoring, the pattern is simple: group responses by the plate’s category, count the matches against the expected responses, and report the groups separately. The important part is defining how an unanswered plate behaves before wiring up the UI. Otherwise, a missing response can quietly become either a wrong answer or a plate that vanishes from the total.

Responsive layout has limits

A regular quiz can reflow text without changing the question. A dot plate is different: scaling it changes how large the dots appear, and device color settings can change how the colors look. A narrow viewport and a warm display filter are two different things to test. Neither can be solved by picking a different frontend framework.

There’s a separate accessibility question around the controls. You can make the surrounding interface keyboard-friendly and give the progress indicator a clear label without making the plate’s answer part of its accessible name.

Treat a retake as a new run

The public flow lets you repeat the test without an account. For a flow like this, I’d test the boundary between the end of one run and the start of the next: answer selections, progress, and any derived scores should all belong to the same run. A stale answer on the first screen of a retake is the kind of bug that looks tiny in code and breaks trust immediately.

None of that makes a browser quiz clinically reliable. It does make it easier to keep the promise the interface actually makes: two practice scores based on the plates you just worked through.