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

-P Doesn't work #3

Closed
Zalanshah64 opened this issue May 7, 2022 · 2 comments
Closed

-P Doesn't work #3

Zalanshah64 opened this issue May 7, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Zalanshah64
Copy link
Owner

Zalanshah64 commented May 7, 2022

Play is a work in progress.

Play will allow you to play a sudoku board. You could either generate a random board, or you could use a board you made yourself saved as a .txt file.

@Zalanshah64 Zalanshah64 added the bug Something isn't working label May 8, 2022
@Zalanshah64
Copy link
Owner Author

Zalanshah64 commented Jun 18, 2022

Okay, so we're getting somewhere.

As of V1.2.1, I've added implementation that adds a "cursor" to the screen, so to say. The cursor can move around the board using the arrow keys. I also added implementation where you can press a number and it determines whether it's a valid number based on the current things in the board, then marks all issues red. It's pretty cool.

Issue with that is, if I have two of the same number on a row/column/subgrid and overwrite one, the second one won't go back to normal and will still be red.

Also, there's this issue I have where sometimes when moving the cursor the board flashes. This is cause what's actually happening is the entire screen is being cleared and the board is being rebuilt from scratch. I guess this is just really expensive (as for every single square you have to check whether it is 1. the selected square 1A. if the selected square and valid 2. the square is valid 3. the square is preloaded (i.e. generated) or input by the user. That's a ton of work to do each time, and I've been chewing on a way to make it more efficient, but I'm not totally sure what yet.

@Zalanshah64
Copy link
Owner Author

In V1.3.1, I grinded out the play feature.

Without the ability to play, this project didn't have much substance. Yeah, being able to generate and instantly solve sudoku boards is cool, but I wanted this to be a little bit more involved. At this point, the entire game is at a point where I'm pretty happy with it. I can't think of what else I'd want to add to improve user experience when playing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant