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

API endpoint for starting a game #58

Merged
merged 3 commits into from
Feb 24, 2024
Merged

Conversation

metalalive
Copy link
Collaborator

About the PR :

  • modify REST endpoint request / response body , and corresponding API document
  • the use-case layer simply invokes Game.start(player-id)
  • the domain model Game internally set ready flag in Player object ,
  • forward the request to relevant socket.io event game-start

I will merge the PR if nobody can help me review the code or give any feedback by 12:30 PM (GMT+8) 23th Feb. 2024.

c.c. @wingtkw , @KalpasWang

- forward the request to relevant socket.io event `game-start`
- the use-case layer simply invokes `Game.start(player-id)`

TODO
- set up ready flag in `Player` model, avoid subsequent configuration
  after the flag is set
- update Open API spec

Signed-off-by: T.H. <[email protected]>
@metalalive metalalive added documentation Improvements or additions to documentation feature For those who propose to add new feature or modify existing features backend dev For back-end development related to this codebase labels Feb 23, 2024
@metalalive metalalive requested a review from wingtkw February 23, 2024 14:00
@metalalive metalalive self-assigned this Feb 23, 2024
@metalalive metalalive merged commit 9e38e61 into main Feb 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend dev For back-end development related to this codebase documentation Improvements or additions to documentation feature For those who propose to add new feature or modify existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants