Keep a record of results against the computer
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 66/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- javascript
- Domaine
- data, full-stack
Piste de recherche
Read js/game-store.js, js/game.js, js/config.js, and index.html; trace how a computer game ends and how Settings renders existing game data. Check npm test and the relevant tests before implementing the counter, validation, reset, and summary. Done when computer game results update once per level and side, damaged saved stats are ignored, and the tests cover counting and validation; the Undo-and-replay and resumed-game questions need a decision.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
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 storesresultandopponent)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
- Tests for the counter and its validation
Getting started
- Relevant files:
js/game-store.js,js/game.js,js/config.js,index.html - How to run tests:
npm ci && npm test
Filed by repo-audit/full-audit at 73cd279. Severity: low. Effort: S. audit-key: enhancement|js/game-store.js|stats
- Langage dominant
- JavaScript
- Étoiles
- 4
- Forks
- 2
- Merge moyen
- 22 h 16 min
- PR mergées (30 j)
- 9
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de TMHSDigital/Static_Chess
-
enhancement help wanted severity: low
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
TMHSDigital/Static_Chess#184 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement help wanted severity: low
Difficulté 4/5 3-5 jours Accessibilité débutants 58/100
TMHSDigital/Static_Chess#182 ·
Les mainteneurs répondent en général sous 1 jour
-
help wanted severity: medium tech-debt
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
TMHSDigital/Static_Chess#173 ·
Les mainteneurs répondent en général sous 1 jour
-
severity: medium tech-debt
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
TMHSDigital/Static_Chess#171 ·
Les mainteneurs répondent en général sous 1 jour
-
help wanted performance severity: medium
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 38/100
TMHSDigital/Static_Chess#168 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de TMHSDigital/Static_Chess
Issues similaires
-
priority: low server testing
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
blamechris/chroxy#9277 ·
Les mainteneurs répondent en général sous 1 jour
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
microsoft/playwright#44289 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Ionaru/easy-markdown-editor#657 ·
-
[source] Camera Blocking StageOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
TMHSDigital/Free-Game-Dev-Assets#320 ·
Les mainteneurs répondent en général sous 1 jour
-
area:webapp bug finding
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour