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

Add support for rematches #13

Open
averycrespi opened this issue Jul 7, 2020 · 2 comments
Open

Add support for rematches #13

averycrespi opened this issue Jul 7, 2020 · 2 comments
Assignees
Milestone

Comments

@averycrespi
Copy link
Owner

Playing again
POST /games/{name}/{id}/playAgain

{name} (required): the name of the game being played again.

{id} (required): the ID of the previous finished room.

Given a previous room, generates a room ID where users should go if they want to play again. Creates this new room if it didn’t exist before.

Accepts these parameters:

playerID (required): the player ID of the player on the previous game.

credentials (required): player’s credentials.

numPlayers (optional): the number of players. Defaults to the numPlayers value of the previous room.

setupData (optional): custom object that was passed to the game setup function. Defaults to the setupData object of the previous room.

Returns nextRoomID, which is the ID of the newly created room that the user should go to play again.

@averycrespi averycrespi self-assigned this Jul 7, 2020
@averycrespi averycrespi modified the milestones: v0.1.0, v1.0.0 Jul 7, 2020
@averycrespi
Copy link
Owner Author

Wait until v0.40 of boardgame.io is released with isGameOver property on getMatch

@averycrespi averycrespi modified the milestone: v2.0.0 Jul 9, 2020
@averycrespi
Copy link
Owner Author

@averycrespi averycrespi added this to the v2.0.0 milestone Aug 1, 2021
@averycrespi averycrespi changed the title Implement rematches Add support for rematches Aug 1, 2021
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

No branches or pull requests

1 participant