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

Load & Play Puzzles #16

Merged
merged 11 commits into from
May 3, 2023
Merged

Load & Play Puzzles #16

merged 11 commits into from
May 3, 2023

Conversation

FeXd
Copy link
Owner

@FeXd FeXd commented May 1, 2023

Load a puzzle, auto-move first piece, then prompt user to solve. After each move, verify if it is correct or incorret, showing a message. If correct, either notify that puzzle is complete, or ask for another move. Click on puzzle complete message to move on to next puzzle.

This is MVP for functionality, minus loading puzzles from a larger database.

image

Closes #6
Closes #8

This is realted to #5 but I don't think it is enough to close it. I would like to see #5 actually include the entire database or API. Currently there are only 10 hard coded puzzles taken from the ~400 rating or so.

FeXd added 10 commits April 28, 2023 12:42
- added some logic to only flip if loading new Fen
- needs a refactor but working is working
- made space for messages
- was turning circles into squares in corners
- messy and needs some refactoring, but working
- could store state better, but trying to avoid overcomplicating
- remove old board setup with fen only
- flipping logic changed, as puzzle FEN is loaded one move prior to player move
- add credit to lichess for puzzle db
- remove emojis from text (they are creating height issues with font)
- need to change mouse icon
- removed random button
- can only go to next puzzle if complete message is shown
- adjust size so that message area is consistent size
- small styling adjustments
@FeXd FeXd temporarily deployed to github-pages May 1, 2023 21:09 — with GitHub Pages Inactive
- ok seriously I'm done now
@FeXd FeXd temporarily deployed to github-pages May 1, 2023 21:13 — with GitHub Pages Inactive
@FeXd FeXd changed the title Load an Play Puzzles Load & Play Puzzles May 3, 2023
@FeXd FeXd merged commit 17f6613 into main May 3, 2023
@FeXd FeXd deleted the make-moves branch May 3, 2023 14:08
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.

Solve Puzzles Make Moves
1 participant