Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sudoku #805

Merged
merged 43 commits into from
Jun 18, 2024
Merged

Sudoku #805

merged 43 commits into from
Jun 18, 2024

Conversation

kchiu1
Copy link
Collaborator

@kchiu1 kchiu1 commented Apr 16, 2024

Description

Closes #(issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (improvement to an already existing feature)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

EggyMath and others added 30 commits February 13, 2024 17:24
Refactored Case Rules to match wiki description and fixed bug that only checked regions and not all group types.
Refactoring and bug fixes
Trying again since there was a merge issue last time.
Updated PossibleCellsForNumber to display number values when case board is clicked and generate proper case boards based off number chosen and local region.
Added and bug tested two alternate versions of the region based Possible Cells For Number case rule.
Created and applied formatted images to case rules to help better show how case rule functions.
Last Cell for Number Direct Rule was almost completely re-written to improve functionality and minimize playing errors.
LastNumberForCell allowed any number to go into a cell if the cell only had one option for number. I.e if the last option was 9 you could put any number 1-9 in cell, this patch fixed that error
PossibleCellForNumber Case rule was only generating branches for and as the value 1 and no other values. Repeated Numbers Case rule was always triggering contradiction since it was taking the empty tile value of 0 in to account with other numbers.
Reformatted NoCellForNumber to function completely in all tested cases.
If statements missing brackets were causing build errors, this should fix that.
+2 new contradiction rule
Change old contradiction rule numbering to reflect as such
changed the order and reference sheet to reflect that
Made and added images for new contradiciton rules. Also refactored NoCellForNumber rule to NoCellForNumberRegion.
It wasn't doing anything and was always returning true.
Fake tests added
Basic Last Number for Cell test case.
Implemented 2 new test cases for LastNumberForCell and made Class and Test Case for RepeatedNumber contradiction rule
Added another test for RepeatedNumbers contradiction rule and fixed previous error.
@summerhenson summerhenson self-requested a review June 18, 2024 17:40
@summerhenson summerhenson self-assigned this Jun 18, 2024
@summerhenson summerhenson removed their request for review June 18, 2024 17:48
Copy link
Collaborator

@summerhenson summerhenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

@summerhenson summerhenson merged commit 71d128c into dev Jun 18, 2024
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.

5 participants