games: add Bubble Math for ordering arithmetic expressions

Ouverte
#65 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
38/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
next.js, react, typescript
Domaine
frontend, testing

Piste de recherche

Start by reading issues #24 and #58 to understand the game roadmap and dependencies, then locate the existing games and common session lifecycle in the repository. Implement Bubble Math with safe expression data, ordering rounds, learning explanations, and accessible keyboard controls; add the specified arithmetic and browser tests. Done means both ordering directions work, invalid results are rejected, and timeout or restart resets the round state.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

enhancement games help wanted

Part of #24. Depends on #58.

Student problem

Students need practice comparing expression values accurately while working under optional time pressure.

Scope

  • Display several expression bubbles and ask the student to select them in ascending or descending numeric order.
  • Clearly state the direction before each round. Begin with addition/subtraction and add multiplication/division, negative values and decimals at documented difficulty levels.
  • Generate distinct values, or explicitly define tie handling before including ties. Reject division by zero and non-finite results.
  • Use safe expression data/evaluation rather than evaluating arbitrary text as code. Define exact comparison or rounding rules for decimals.
  • Explain each value and the correct order in learning mode. Timed practice uses the common session lifecycle.
  • Use stationary selectable controls or provide an accessible alternative to animation. Keep practice free without login.

Done when

  • Tests cover arithmetic precedence, negative/decimal comparisons, ordering direction, duplicate selection and generator validity.
  • A browser test finishes both ordering directions using keyboard controls.
  • Timeout/restart cannot carry an old selection or score into the next round.
Langage dominant
TypeScript
Étoiles
1
Forks
1
Merge moyen
8 h 58 min
PR mergées (30 j)
37

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de procoderji-com/procoderji

Toutes les issues de procoderji-com/procoderji

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.