Brainlag
  1. Library
  2. Challenges
  3. C

The last five scores

Keep only the most recent five match scores in a fixed array that wraps around, the ring buffer behind every "recent games" panel.

CCore25 minPremium

Premium

Inside: 2 checks, no scaffolding.

See Premium£7.99 a month. Already Premium? Sign in

Code editor. Press Control or Command plus Enter to run the code. Tab indents; to move focus out of the editor, press Escape and then Tab.