[EXTERNAL] make-your-game:score-handling WebSocket package is not needed#2894
Merged
HarryVasanth merged 1 commit into01-edu:masterfrom Mar 24, 2025
Merged
[EXTERNAL] make-your-game:score-handling WebSocket package is not needed#2894HarryVasanth merged 1 commit into01-edu:masterfrom
make-your-game:score-handling WebSocket package is not needed#2894HarryVasanth merged 1 commit into01-edu:masterfrom
Conversation
HarryVasanth
approved these changes
Mar 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Gorilla WebSocket package is not needed for this project. WebSockets are typically used for real-time bidirectional communication, such as live chat or multiplayer games. However, since only one player interacts with the game at a time, WebSockets are unnecessary.
For this project, a Go API service using HTTP endpoints is sufficient to handle the scoreboard. The player’s score will be sent via a POST request, and the server will store it in a JSON file. A GET request will retrieve the stored scores when needed. This is explicitly stated in the project instructions:
public/subjects/make-your-game/score-handling/README.md
Lines 7 to 11 in ebcc577
The implementation will rely only on two standard Go packages:
This project is designed to help students learn how to build simple APIs using Go’s standard library:
public/subjects/make-your-game/score-handling/README.md
Lines 69 to 75 in ebcc577
Additionally, the audit ensures that only allowed packages are used:
public/subjects/make-your-game/score-handling/audit/README.md
Line 3 in ebcc577