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

Persist player ID between refreshes #54

Merged
merged 2 commits into from
Jul 23, 2017
Merged

Conversation

randomPoison
Copy link
Owner

The player site now caches the ID for the player, and will try to use the cached ID before generating a new one. This ensures that the player will keep their hippo (and their progress) if they refresh their page or close and reopen their browser. This follows up from #52 to drastically reduce the player's ability to grief the game. To reduce the chance of accidental collisions (as described in #19), the player IDs are now generated randomly. We likely don't have to worry about collisions, as there are 264 possible IDs.

Closes #19.

@randomPoison randomPoison merged commit 364d485 into master Jul 23, 2017
@randomPoison randomPoison deleted the iss19-persistent-player-id branch July 23, 2017 19:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache a player's ID across page refreshes
1 participant