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

Restrict Second Player of Game #21

Open
aashutoshrathi opened this issue Sep 5, 2024 · 0 comments
Open

Restrict Second Player of Game #21

aashutoshrathi opened this issue Sep 5, 2024 · 0 comments

Comments

@aashutoshrathi
Copy link
Member

Description

As of current implementation, when a user creates a game, anyone can Join that game.
The idea is to restrict the Game to the Second player who can join this game.
This can be achieved by having a "Create Game" modal that asks for a Second player too, who can later call Join Game and only if they call it, the game proceeds otherwise, it's rejected.

Open Problems

The users will be mostly aware of the actual addresses of the players.

  • Either the player has to communicate their embedded wallet addresses or we need to link their addresses on Micro-rollup.
  • One way is to keep the mapping of addresses also in state so that that can be leveraged by the user. But this needs more work on how do you authenticate the sign-up or embedded wallet creation requests
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