jbholden / cdcpool_google

0 stars 1 forks source link

Overall pool state #20

Open jbholden opened 10 years ago

jbholden commented 10 years ago

I was planning on including the overall pool state in the overall results data for different uses. I am attempting to document those states here, what they are technically, and how they would be used. This is mainly for the overall leaderboard page, but might have other uses.

These state values would be determined by some function, not stored in the database.

The cases I am struggling with is the "player signup" state and the "enter picks" state. I will make a 2nd post about this.

list of states (final state name not decided yet)

list of states (use cases)

list of states (technical details - compare to week state in #18)

list of states (technical details)

jbholden commented 10 years ago

The following states might be intertwined, so I am not sure the best way to determine these states at this point.

I see the following possible cases:

  1. all players must signup before the week 1 picks are opened
  2. players may sign up and enter picks until the week 1 pick deadline has passed

I think case 2 would work better but requires storing some variable in the database.

case 1 - all players must signup before the week 1 picks are opened

case 2 - players may sign up and enter picks until the week 1 pick deadline has passed

jbholden commented 10 years ago

I think that case 2 could be implemented as follows:

Do you think there will be a case where someone wants to signup after week 1? (A person might take a score of 0 for week 1 and then start play in week 2)

Also do we need a way to remove a player from the pool? (for example, someone does not pay)

jbholden commented 10 years ago

Sorry for the long posts, this is mainly for documenting my thinking process.
I think I can finalize the overall state as follows:

To detect the player signup phase:

Do you agree with the following?

blreams commented 10 years ago

[Brent asked] Do you think there will be a case where someone wants to signup after week 1? (A person might take a score of 0 for week 1 and then start play in week 2)

This has happened in the past. But it is kind of a pain. We can certainly take a hard line and say you can't do that anymore.

[Brent asked] Also do we need a way to remove a player from the pool? (for example, someone does not pay)

I was thinking that each player would have a "state" (signed up, paid up, etc.). This would help the commissioners to see who has signed up to participate and who has actually paid. Then, if they aren't paid, they wouldn't show up in any of the reports. Right now each row of the Player table is a player/year, correct? So this "state" would only apply to a particular player/year combination.

[Brent asked] Do you agree with the following? I agree with all 4 of the bullets. It will require some mods to create_week...to support creating a week without any games.

blreams commented 10 years ago

Was just revisiting my previous answer about removing players from the pool. We don't want to allow a situation where a player could "game" the system by not paying initially but still submitting their picks each week in the hopes that they could pay at a later date and thus become a participating member (ie. once they have determined that they are playing well enough to be a factor). Basically, we should not allow anyone to join the pool after week 2 picks are locked. I'm still OK with allowing someone to join after week 1 is complete with the stipulation that they begin with a 0 score for week 1. However, if it is too much of a hassle, then we can take the hard line and not allow anyone to join after week 1 is locked.