Skip to content

179 server create chess puzzle framework #210

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

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

ymmot239
Copy link
Contributor

Added 5 different test puzzles.

Puzzles can be done a black or white, and it will show the current side in the top corner.

The puzzle will automatically undo when a wrong move is taken, and update the spectators when the correct move is made.

Additional puzzles can be added to puzzles.json if needed

ymmot239 and others added 21 commits October 18, 2024 16:57
moving computers.
created most of the setup page
Need to create the server response to client moves.
code update for puzzle framework
…o 179-server-create-chess-puzzle-framework
For use with the puzzle framework
Added game ended, set chess, and puzzle solved messages for notifying client of puzzle progress.
Created a puzzles.json for saving puzzles in server.
Removed extra puzzle files and print statements.
Added some comments for readability
Ran prettier
Added the puzzle difficulty rating to the nav bar for reference.
ran prettier
made the difficulty rating only appear during puzzle games, and null for others.
added a 2915 rated 7 step puzzle
rotation hotfix
Messed up importing in apis
Added back simulator and puzzle messages.
Added support for spectators to view puzzle and Ai games.
This required a 1 second delay, so the games feel a bit weird, but they work.
Without it, the spectators would error because they had too many move commands at once.
Added another 1000ish elo puzzle to puzzles.json
changed handle message to match new Arduino changes
@ymmot239 ymmot239 linked an issue Mar 24, 2025 that may be closed by this pull request
ymmot239 and others added 2 commits March 24, 2025 17:52
Copy link
Member

@democat3457 democat3457 left a comment

Choose a reason for hiding this comment

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

Also I need to test the branch

* Makes a move on the chessboard.
* @returns the move that was made.
*/
move(move: string): string {
Copy link
Member

Choose a reason for hiding this comment

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

this method isn't used anywhere, why is it included?

@@ -38,6 +39,20 @@ export class MoveMessage extends Message {
};
}
}
export class SetChessMessage extends Message {
Copy link
Member

Choose a reason for hiding this comment

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

can you add comments to these message declarations?

@democat3457
Copy link
Member

Test looks fine, waiting on comments to be resolved

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.

Server: Create chess puzzle framework
3 participants