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

Authorize new spot creation #25

Open
michaelkirk opened this issue Mar 29, 2015 · 0 comments
Open

Authorize new spot creation #25

michaelkirk opened this issue Mar 29, 2015 · 0 comments

Comments

@michaelkirk
Copy link
Member

This only applies to adding the next spot to an existing game.

Spot creation needs to be authorized, such that only users who have successfully guessed the spot, within the time frame can create a new spot.

I am authorized to create a new spot if:

  1. I successfully guessed the current spot
  2. and am within my timeframe
  3. and in the meanwhile no one else has created a new spot for my game

So I get denied if I attempt to create a new spot for a game that I...

  1. ...didn't successfully guess the current spot,
  2. ...successfully guessed the current spot, but I run out of time
  3. ...successfully guessed the current spot, but in the meanwhile, someone else guessed the current spot and posted a new one.

This gets a little bit tricky, because there are potentially multiple people authorized to create a new spot at any given point.

Consider the case...
player 1 owns the current spot...
player 2 and player 3 capture that spot roughly at the same time.
At this point, both player 2 and player 3 are authorized to create a new spot,
but once either one of them has created the new spot, the other is no longer authorized.

We need to display coherent error messages to the iOS user in each of these cases.

@michaelkirk michaelkirk added this to the 1.0.0 milestone Mar 29, 2015
@michaelkirk michaelkirk modified the milestones: 1.0.0 - submit to app store, 1.1.0 - after app store Jul 9, 2015
@michaelkirk michaelkirk modified the milestones: 1.1.0, 1.3.0 Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant