-
Notifications
You must be signed in to change notification settings - Fork 82
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 Cell classes extend from GridCell as an integer #139
Comments
Note that if any changes are made here, we should double check that this tutorial is still up to date: https://github.com/Bram-Hub/Legup/wiki/Implementing-Puzzles |
Im doing LightUp rn |
I can do Nurikabe |
For Sudoku, you'd actually want to use integer types. I'll now do SkyScrapers. -- update: finished Skyscrapers and waiting for the PR review |
I'll do Fillapix |
I can do Skyscrapers |
I believe someone is already doing both of those |
heyawake doesn't have its custom types, so I think using integers is fine here too. I'll do masyu now -- update: finished masyu. updated to the PR |
I'll do Tree Tent |
* Changes to `TreeTent`. * Changes to `TreeTent`. --------- Co-authored-by: Ivan Ho <[email protected]>
I have already talked with some of you, but if you think the puzzle you are working on is using arithmetic with the |
Nurikabe is also better left as an Integer because setting the type of cell is reliant on being able to set a numerical value in addition to just black or white. |
Is LightUp still being worked on? |
LightUp has the same issue as heyawake and Sudoku the code does math on the numbers so it is not viable to do. |
I'll do Short Truth Table then, thanks. |
All puzzles currently have their cell class extend from
GridCell
asInteger
types, yet they have their own respective types/enums. It may be a good idea down the line to change each cell class to use their own respective classes instead, which also means changingGridCell
andPuzzleElement
to work withenums
.For Example:
Current:
Suggestion:
To do:
GridCell
andPuzzleElement
classes to work withenums
. If the codebase seems more suitable to useInteger
instead of their respective types, please comment about it below and provide some short reasoning if you can. Alternatively, you can store the integer data value within theenum
class instead ofGridCell
and have your code perform arithmetic on that instead.Change the cast types for each cell class...
The text was updated successfully, but these errors were encountered: