Here are five rounds from an imaginary reaction game, in the order somebody played them: 241, 238, 246, 240, 515 milliseconds. You have room for one large number on the result screen. What goes there?

If you picked 238, I can picture the screen already. Big type, a little trophy, a button to challenge a friend. If you picked 296, you probably added the numbers and divided by five. If you picked 241, you sorted them and took the middle one. Each answer is defensible. Each tells a different story about the same thirty seconds at a keyboard.

I run VoltReflex, where you can play a visual reaction test in sessions of five, ten, or twenty rounds and see your round history. The interesting design problem for this article starts after the last input arrives. Given a handful of observations, what can you put on a screen that a player can repeat to someone else without accidentally changing its meaning?

Five example rounds at 241, 238, 246, 240 and 515 milliseconds. The fastest is 238 and the average is 296.

Open the full-size scorecard chart

The numbers below are invented so you can check every calculation. The code is a standalone exercise you can paste into a JavaScript console.

Decide what the big number promises

Imagine two people looking at the result over lunch. One asks, “How fast did you get?” The other asks, “What were you getting most of the time?” A perfectly natural answer to the first question is 238. A perfectly natural answer to the second is “somewhere around 240.” Nobody looking at the individual rounds would say they kept getting 296. Yet 296 is exactly their average.

I would put Fastest round · 238 ms on a challenge card meant to celebrate one good attempt. On a screen meant for someone reviewing a practice session, I would lead with Median of 5 rounds · 241 ms and keep all five results within reach. This is one of those decisions I would make while drawing the interface on paper. Changing the font size after the calculation is finished is a surprisingly effective way to change the product.

The word round does real work here. Put “You reacted in 238 ms” next to a share button and it sounds like a statement about the person. Put “Fastest of five rounds: 238 ms” in the same space and a friend knows exactly what happened. That small piece of copy can survive a screenshot. A tooltip explaining the denominator probably won't.

Give the fifth round somewhere to go

Four of our values fit inside an eight millisecond window. The fifth takes more than twice as long as any of them. It is tempting to add an outlier rule right away. Before doing that, try writing the sentence the interface would show if the player asked where round five went. “We removed your slowest response because it made the graph look strange” sounds pretty bad out loud.

We know only that the game recorded 515. Perhaps the player looked away. Perhaps they watched the cue the whole time. You cannot recover that distinction from the duration. You can, however, know that the page became hidden during a different trial if your app recorded that event. Those two situations deserve different entries in your model. One has a measured response. The other has an observed reason to interrupt a trial.

Here is what the fifth response does to the arithmetic. The first four add up to 965, giving a mean of 241.25. Add 515 and the total becomes 1,480. Divide by five and you get 296. Nobody needs to have scored near 296 for that calculation to be right. A mean answers a question about the whole total, and every extra millisecond in the total gets a vote.

There is a friendly way to explain this without fitting a statistics lesson onto a phone. Show the five rounds in order. Highlight the fastest with a small label and leave the fifth visible at its actual size. A player can point at the long bar and understand the difference between their fastest round and their average before opening any help text.

Keep attempts and completed rounds separate

Suppose the first tap came early, the next two rounds completed, and the player switched tabs during the following wait. When the interface says “Round 3 of 5,” is that a bug? It depends on what you promised. If the button said “Play five scored rounds,” two are complete. If it said “Make five attempts,” four attempts have already happened. An array called scores will struggle to explain both stories.

For this exercise I would record one entry per attempt and give each entry an explicit outcome. A scored attempt carries a duration. An early attempt carries the reason it ended. An interrupted attempt can carry a reason such as a hidden page. I would derive the count beside the progress bar by counting scored entries. Two early taps would still appear in the history, but neither would turn into a zero in the average.

A zero is particularly nasty here because it looks fantastic. An empty field that slips through a numeric conversion can turn an unfinished session into a personal record. Make that failure obvious to the developer. If an entry calls itself scored and its duration is missing, the example below throws an error. A production interface could offer to restart or recover the session, while keeping the bad record out of the results.

function summarize(attempts) { const times = []; for (const attempt of attempts) { if (attempt.outcome === "early" || attempt.outcome === "interrupted") continue; if (attempt.outcome !== "scored" || !Number.isFinite(attempt.ms) || attempt.ms < 0) { throw new TypeError("Unexpected attempt or invalid duration"); } times.push(attempt.ms); } if (times.length === 0) return null; const sorted = [...times].sort((a, b) => a - b); const middle = Math.floor(sorted.length / 2); const median = sorted.length % 2 === 1 ? sorted[middle] : (sorted[middle - 1] + sorted[middle]) / 2; return { count: times.length, fastest: sorted[0], mean: times.reduce((sum, ms) => sum + ms, 0) / times.length, median }; } const rounds = [241, 238, 246, 240, 515] .map(ms => ({ outcome: "scored", ms })); console.log(summarize(rounds)); // { count: 5, fastest: 238, mean: 296, median: 241 } 

I like returning a distinct empty result because it forces a decision in the view. Before the first completed round, the score panel can say “Your first result will appear here.” If a player leaves after three completed rounds, the panel can say “Three rounds completed” and show those three. A dash with no explanation makes those two states look remarkably alike.

Preserve the order somebody actually played

The sorted copy in that function is deliberate. The median needs the values in increasing order. The history needs them in the order somebody played. Sort your only copy in place and a chart can quietly turn into a fictional account of a player getting slower with every click. All the arithmetic checks still pass. You need a check for the story told by the chart.

Take the exact same five numbers and put 515 first. The fastest, mean, and median stay the same. The experience changes quite a bit. Seeing one long first round followed by four closely grouped responses might prompt a question about whether the opening instructions were clear. Seeing a long last round suggests a different question. Neither observation establishes a cause, but knowing the order gives you a sensible place to start looking.

For a round history I would give the horizontal or vertical axis the simplest labels possible: round one, round two, round three. In a ranking view I would be equally explicit about sorting and keep the original round number beside each value. A “fastest first” switch is fine as long as switching it off brings the player back to the sequence they remember.

A small screen adds one more wrinkle. If you display only the latest three values, the score in large type might refer to a round that has already scrolled away. A tiny “Round 2” beside a best time lets someone find it again. It also settles a surprisingly basic support question: “Where did that number come from?” You can answer it without making anyone redo the session.

Compare sessions without letting the rules drift

Here is a little trick you can try with pencil and paper. Write down five times. Circle the smallest. Add fifteen more times to the bottom of the page and circle the smallest value on the entire sheet. Your second circle will land on the same number or a smaller one. There is no possible set of fifteen extra observations that makes the minimum of that growing list larger.

That simple fact changes how a leaderboard reads. If one person shares their best of twenty and another shares their best of five, the player with twenty rounds had more opportunities to produce a quick one. They might still lose. The point is that the rules gave them a different number of chances. Putting the round count on the card makes the comparison much easier to discuss.

A fairer challenge between friends could be as ordinary as agreeing to five completed rounds each, using the same game mode, then sharing the entire session. If they are curious about differences between a laptop keyboard and a phone screen, they can label the two setups. If they are just having fun, no one needs a form asking for the serial number of their mouse. Ask for the information the comparison actually uses.

I would also decide what happens when a player restarts after a slow round. A local game can happily offer unlimited restarts. Calling the best surviving session somebody's “usual speed” is a bigger claim. A result screen can avoid that trap with a date or session label and a plain description of what was saved. The player gets to celebrate, and their friend gets to decide what that celebration means.

Design the shared result outside the app

Try a copywriting test before you build the export button. Paste the proposed share text into a blank message, close the game, and read the message as someone who has never seen it. “I got 238!” leaves at least three questions open. Is lower better? Was this one click or a whole game? What was the task? “Visual reaction game, fastest of 5 completed rounds: 238 ms” travels much better.

The same exercise works for an image. A nice looking card might lose its heading when a messaging app crops the thumbnail. Keep the unit and the metric label close to the number. Include the round count as text someone can read on a small screen. For a text-only alternative, generate a sentence from the same summary object. That way editing the formatting in one component cannot quietly turn a median into an average elsewhere.

Think about a tie while you have the card open. Suppose the fastest two rounds are both shown as 238 after rounding. Internally, one was 237.6 and one was 238.4. A trophy beside only one of two identical labels looks arbitrary. You could show both as joint fastest at display precision, or show another decimal in the detailed history. Whichever rule you pick, make the highlight and the displayed explanation agree.

I would retain the original values for calculations and apply display rounding at the last step. For example, three durations of 240.49, 240.49, and 241.49 have a mean of about 240.82. Rounded once at the end, the mean displays as 241. Round every input first and you get 240, 240, and 241, whose mean displays as 240. It is only a millisecond, but it is also the kind of discrepancy somebody will patiently reproduce for you.

Test the results screen with awkward little sessions

Start with one completed round. All three summary values should agree. Next, enter two completed rounds of 200 and 300. Their median should be 250, which checks the even-length branch without requiring anyone to mentally sort a long list. Then feed in rounds of 90, 105, and 1000. If you accidentally used JavaScript's default string ordering, this is a much better witness than a list of three-digit numbers.

Now try an early attempt between two good rounds. The history should have three entries, the summary should have two scored rounds, and the progress indicator should be ready for the third. If the same two rounds appear with an interrupted attempt instead, the arithmetic should stay the same while the history message changes. These are two separate assertions. A function can be perfectly right about addition while the interface blames the player for an interruption.

My favorite check is to save a copy of the original attempt order, open the summary twice, and compare the history with the copy. Then open the share sheet and do it again. Read operations are easy to overlook in tests because their names sound harmless. A helper buried inside a share card can still reorder an array that the rest of the page uses.

Finally, hand the result to somebody with one narrow question: “Which round does the large number describe?” If they answer “all five” when the card shows a fastest round, you have learned more than a passing snapshot test could tell you. Change the label, give the card back, and ask again. For our original five rounds, I would be happy to ship a screen where a friend could glance at it and say, “You got 238 on round two. What happened on round five?” That is a conversation the actual data can support.