You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep a record of results against the computer #160
Each past game stores its result and opponent, but nothing adds them up, so a player working up from easy to hard has no sense of progress. The archive keeps only 20 games, so totals need their own small record.
Where
js/game-store.js:48 (each entry stores result and opponent)
js/game-ui.js:545-554 (the list shows them per game only)
Proposal
Keep a small stats record in localStorage (new key in CONFIG.STORAGE_KEYS) with win/draw/loss per level and side, updated when a game against the computer ends. Show a one-line summary per level in Settings with a Reset button.
Who benefits
Players using the computer opponent to improve.
Open questions
Should games ended by Undo-and-replay or resumed from Play from here count?
Acceptance criteria
Finishing a game against the computer updates the right counter once
Reset clears it; a damaged stats record is ignored, not fatal
Activity
Aanandan-T-Ma commentedon Nov 18, 2026
Hi @TMHSDigital , I would like to try contributing to this issue. Let me know if anyone else is working on this, or I can start.