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

Puzzle Editor Dimension Validation #181

Merged
merged 14 commits into from
Jul 15, 2022

Conversation

charlestian23
Copy link
Collaborator

Legup will now show an error message if the number of rows and columns entered is invalid. Note that functionality only works for Sudoku since I didn't implement isValidDimensions for any other puzzles (I'll do that later separately).

This implementation is also kind of slow, so I want to increase the speed before we push this to dev. I'm just opening a pull request for now because it at least functionally works.

charlestian23 and others added 10 commits July 1, 2022 23:55
New abstract method in Puzzle class meant to be used to check if a puzzle is a valid size
Renamed width and height variables to rows and columns for clarity purposes
Did this for clarity and to be consistent throughout the code. Note that I did not go through and change all the comments in all the importers.
Implemented isValidDimensions()
- Fixed null panel bug when opening apuzzle for the first time
- Fixed a bug where puzzle editor panel wouldn't clear properly after entering invalid dimensions
- Fixed the title not changing on the home screen after returning from the puzzle editor
@charlestian23 charlestian23 added puzzle editor Related to creating or editing puzzle files enhancement Improvement to existing feature labels Jul 5, 2022
Fixed some bad coding style
Changed the placeholder code to be throwing an exception instead of returning false
Requires the number of rows and columns to be greater than 1 for Sudoku
@mattsweet417 mattsweet417 merged commit 6fcdf46 into puzzle-editor Jul 15, 2022
@charlestian23 charlestian23 deleted the puzzle-editor_validate-puzzle-dimensions branch July 19, 2022 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to existing feature puzzle editor Related to creating or editing puzzle files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants