games: add Bubble Math for ordering arithmetic expressions

Aperta
#65 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
next.js, react, typescript
Ambito
frontend, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
1
Fork
1
Merge medio
8h 58m
PR unite (30g)
37

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di procoderji-com/procoderji

Tutte le issue di procoderji-com/procoderji

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.