How to program a leaderboard with pygame?
12:18 27 Feb 2026

I have a working game loop, but I can't figure out or find anywhere how to program a leaderboard to store this information and I don't want to ask AI. Specifically I don't know how to get it to update each time, plus I need to use a bubble/insertion sort.

python pygame