emurnane / EmailDrivenAppsEngine

0 stars 4 forks source link

Handle error and supply message for users who don't meet criteria to play #11

Closed emurnane closed 8 years ago

emurnane commented 8 years ago

Currently, for the game to be playable, these conditions must be met: The account must have (1) received at least one email and (2) have replied to that email within 30 days of last time logged into the game. (These conditions have to be true because the speed of the aircraft depends on the user's average response time, and the code specifies no default response time).

While any realistic user should have received at least one email and responded in the last 30 days, handle this case so a user whose account doesn't meet these criteria doesn't receive an error or just see a black screen:

emurnane commented 8 years ago

Looks good! See commits https://github.com/emurnane/EmailDrivenAppsEngine/commit/9e87203596ed08f6f77574775cb82013eceebc7a and https://github.com/emurnane/EmailDrivenAppsEngine/commit/fec3a8d14a9f9f194c65f9f9fe1484a1e33b33fd