games: add Digit Challenge for constrained arithmetic

Aperta
#60 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
35/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 #24 and its dependency #58, then locate the existing games and shared timed-practice lifecycle. Define the digit and precedence rules before implementing the generator and answer validation; the issue names no files or tests to start from. Done means the specified validation and generator tests pass, a browser test completes, corrects and restarts a round, and the game remains separate from Digit Recall.

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 completing arithmetic expressions under digit-use constraints, with feedback that explains valid reasoning.

Scope

  • Present an expression with missing operands and a target, initially forms such as a × b + c = target.
  • Let students choose distinct digits from 1 to 9. Clearly state available digits, reuse restrictions and operator precedence.
  • Generate solvable puzzles and accept any assignment that satisfies the expression and constraints, including alternatives to the generated solution.
  • Increase difficulty through documented expression templates; keep operand selection and undo usable with keyboard/touch.
  • Show a worked solution after submission in learning mode; timed practice uses the shared lifecycle.
  • Keep free guest practice. Additional quick-calculation templates can follow once the core rules are reliable.

Done when

  • Tests cover valid alternate answers, duplicate/out-of-range digits, incomplete input, precedence, impossible generated targets and difficulty bounds.
  • Generators prove at least one legal answer exists.
  • A browser test completes a round, corrects an operand and restarts.

Keep this separate from the existing Digit Recall memory exercise.

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.