Skip to content

Conversation

@ezuk
Copy link

@ezuk ezuk commented Nov 10, 2025

This commit adds a new checkbox to the print config view that allows users to generate only subtraction problems that require borrowing.

Changes:

  • Added "Only problems that require borrowing?" checkbox to the UI
  • Implemented requiresBorrowing() helper function to detect when a subtraction problem requires borrowing
  • Updated equation generation logic to filter problems based on the borrowing constraint
  • The filter only applies to subtraction category worksheets

The borrowing detection works by comparing each digit position from right to left and checking if any minuend digit is less than the corresponding subtrahend digit.

This commit adds a new checkbox to the print config view that allows users
to generate only subtraction problems that require borrowing.

Changes:
- Added "Only problems that require borrowing?" checkbox to the UI
- Implemented requiresBorrowing() helper function to detect when a
  subtraction problem requires borrowing
- Updated equation generation logic to filter problems based on the
  borrowing constraint
- The filter only applies to subtraction category worksheets

The borrowing detection works by comparing each digit position from right
to left and checking if any minuend digit is less than the corresponding
subtrahend digit.
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