Skip to content

Fix for the addition of fractions#10

Open
SabshinK wants to merge 2 commits into
mainfrom
fraction-calculation-fix
Open

Fix for the addition of fractions#10
SabshinK wants to merge 2 commits into
mainfrom
fraction-calculation-fix

Conversation

@SabshinK

Copy link
Copy Markdown
Contributor

While not strictly necessary, having a get common denominator function might be useful, and this implementation works with fractions of the same denominator, so for now this will work. Later, because you shouldn't be allowed to add fractions of different denominators directly via the cauldron, we can add a check inside of the cauldron class in AddIngredient. That way, the ability to add fractions of different denominators is possible, just prevented because of how the rules of the game.

SabshinK added 2 commits July 26, 2025 15:00
While not strictly necessary, having a get common denominator function might be useful, and this implementation works with fractions of the same denominator, so for now this will work. Later, because you shouldn't be allowed to add fractions of different denominators directly via the cauldron, we can add a check inside of the cauldron class in AddIngredient. That way, the ability to add fractions of different denominators is possible, just prevented because of how the rules of the game.
TODO statement for later
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.

1 participant