A table of best scores
Players post their score when a run ends, and the game shows the best ones in a ready-made table over the game, so asking for it costs your AI almost nothing. A leaderboard can last forever or start again every day, week, month, or year, players can look at the previous one, and it can rank the highest score, for points, or the lowest, for times.
Tap to play a round. Here the scores and your name stay on this device, as a light user's do.
Add a leaderboard of the best scores that starts again every day, and show the top 10 when a run ends.
View code
const best = new Leaderboard(game, "best");
await best.submit(score);
await best.show({ top: 10 });