games: add Digit Challenge for constrained arithmetic

Offen
#60 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Bereich
frontend, testing

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
1
Forks
1
Ø Merge
8 Std. 58 Min.
Gemergte PRs (30 T.)
37

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus procoderji-com/procoderji

Alle Issues in procoderji-com/procoderji

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.