Accent color
All projects

ICPC-style scoreboard reveal

Contest Resolver

Topics
Backend, Web
Built with
  • Next.js
  • React
  • Node.js
  • Socket.IO
  • Tailwind CSS
A dark contest scoreboard mid-reveal: one team's row glowing blue as it climbs, a fresh green accepted cell and yellow cells still hidden.

ICPC-style contests freeze the scoreboard for the final hour. Teams keep submitting, but nobody learns whether those runs passed until the ceremony, where the frozen board is resolved live in front of everyone. I built this one for the IMPACT 6.0 final reveal, fed with the frozen standings exported from Judgels.

The contest is over and the resolver is offline, but all of it is in the source: the Next.js board, the admin console, and the small Socket.IO server that keeps the projector, the laptops and everyone’s phones on the same frame.

In numbers

  • 11 problems on the board, A to K
  • 20 min penalty for each wrong try before an accept
  • 3.8 s between reveals on autoplay
  • 1 admin console in control at a time

Ten teams, seventeen secrets.

At the four-hour mark the board stops moving. Everything submitted after that shows up only as a yellow cell: the team tried something, and nobody in the room knows how it went.

Problems a team had already solved before the freeze stay green, and any later submission on them is ignored completely, so nobody can be ‘revealed’ into a problem they already had.

The frozen IMPACT 6.0 scoreboard: ten teams, problems A to K, green accepted cells, red wrong ones and yellow pending cells.

From the bottom up.

The resolver always picks the lowest-ranked team that still has something hidden and opens its cells left to right, A to K. Several hidden runs on the same cell open together: an accept wins, and every wrong try before it adds its 20 minutes.

An accept lights the cell, the row turns blue and slides up to its new rank, holds for a beat, and the next yellow cell is already waiting. The first team to solve each problem keeps a darker green, so those stand out in the final standings.

  • Same reveal order as a real ICPC ceremony
  • Ranked by solved, then penalty, then frozen rank
  • First-to-solve cells marked
Mid-reveal: Heap Hopers gets an accept on problem B and climbs two places, while the next hidden cell waits in yellow and the side panel shows what is up next.

One console, every screen.

The admin page claims a lock on the server, and only that tab can push the state. Any other admin tab is told another page is in control and can only watch; the lock frees itself when the controlling tab closes.

Everything else just follows along. Space or the right arrow reveals the next run, A toggles autoplay, R resets, and H hides the controls for a clean projector view.

The admin console sends state through the Socket.IO server to a projector, a phone and a laptop, while a second admin tab is locked out.