Skip to content

Add thousand and hundred problem categories across operations#35

Merged
Null000 merged 1 commit intomainfrom
claude/add-problem-categories-2SYYs
Feb 23, 2026
Merged

Add thousand and hundred problem categories across operations#35
Null000 merged 1 commit intomainfrom
claude/add-problem-categories-2SYYs

Conversation

@Null000
Copy link
Copy Markdown
Owner

@Null000 Null000 commented Feb 23, 2026

Summary

This PR expands the math problem curriculum by adding new problem categories for thousands and hundreds across addition, subtraction, multiplication, division, and comparison operations. It also introduces a new grade level (5th grade) to the Slovenian curriculum grouping.

Key Changes

  • Addition: Added 4 new categories

    • Addition_ThousandWithoutCarry: 3-digit numbers (100-990) without carrying
    • Addition_ThousandWithCarry: 3-digit numbers with forced carrying
    • Addition_Thousand: 3-digit numbers with optional carrying
    • Addition_Hundreds: 3-digit numbers in 100-step increments
  • Subtraction: Added 4 new categories with analogous structure

    • Subtraction_ThousandWithoutBorrow: 3-digit numbers without borrowing
    • Subtraction_ThousandWithBorrow: 3-digit numbers with forced borrowing
    • Subtraction_Thousand: 3-digit numbers with optional borrowing
    • Subtraction_Hundreds: 3-digit numbers in 100-step increments
  • Multiplication & Division: Added hundred-level categories

    • Multiplication_Hundred and Multiplication_Hundred_Missing
    • Division_Hundred and Division_Hundred_Missing
  • Comparison: Added Comparison_Thousand category with 100-1000 range in 10-step increments

  • Curriculum Organization:

    • Added new "5. razred" (5th grade) group for Slovenian curriculum
    • Organized new categories into appropriate grade levels (4th and 5th grade)

Implementation Details

  • Fixed carry/borrow detection logic in addition and subtraction to properly handle multi-digit steps by extracting the relevant digit using Math.floor(i / step) % 10 instead of simple modulo operations
  • Updated comparison generation to support optional step parameter for non-unit increments
  • Added comprehensive translations for all new categories in both English and Slovenian
  • Updated category groups and year-based curriculum mappings to include new categories

https://claude.ai/code/session_01CGiFofzMUvj7issSHSwndn

New categories added:
- Grade 3: Addition/Subtraction of Hundreds (stotice)
- Grade 4: Addition/Subtraction up to 1000 (with/without carry/borrow),
  Comparison up to 1000
- Grade 5 (new): Multiplication/Division up to 100 (2-digit × 1-digit)

Year groups reorganized so Grade 4 now includes 1000-range arithmetic
alongside existing multiplication/division up to 20, and Grade 5 is
introduced for larger multiplication and division problems.

Carry/borrow detection generalized to work with step-based generation
for 3-digit number categories.

https://claude.ai/code/session_01CGiFofzMUvj7issSHSwndn
@Null000 Null000 merged commit 84378c2 into main Feb 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants