Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Rematch action at the end of game #24

Open
valeriangalliat opened this issue Jun 9, 2016 · 1 comment
Open

Rematch action at the end of game #24

valeriangalliat opened this issue Jun 9, 2016 · 1 comment

Comments

@valeriangalliat
Copy link
Contributor

And with unranked games, unranked rematch.

Could be like long pressing the green one to end the game.

@valeriangalliat
Copy link
Contributor Author

I see two ways to implement this:

  • In GPIO module, when long press on the green button, emit state to get the current game data, emit a new match with the same players, and then emit end-game to actually end the game.
  • Add a rematch event in the API that would queue the players of the current game. Then GPIO on long green press would emit rematch, then end-game (not at the same time because it would be a race condition).

In both cases there's no way to bypass the queue, if people are in the queue, they'll play first, and that's what we want.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants