Add Cookie to store pokemon stats. #48
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds cookie to store non daily games user statistics.
Here is the sample look of cookies after 4 games .
min_gene=1; max_gene=9; t_attempts=8; lang=; hintsenabled=0; secret_poke=1127; guessesv2=[{"hints":["imgs/up.png","imgs/wrong.png","imgs/wrong.png","imgs/up.png","imgs/up.png"],"name":892,"info":"<b>Gen:</b> 7<br><b>Type 1:</b> Poison<br><b>Type 2:</b> Fire<br><b>Height:</b> 1.2<br><b>Weight:</b> 22.2","mosaic":"25522"},{"hints":["imgs/correct.png","imgs/correct.png","imgs/correct.png","imgs/correct.png","imgs/correct.png"],"name":1127,"info":"<b>Gen:</b> 9<br><b>Type 1:</b> Electric<br><b>Type 2:</b> Ground<br><b>Height:</b> 2.3<br><b>Weight:</b> 60","mosaic":"11111"}]; Stats={"wins":4,"losses":0,"guessesNo":[2,2,3,2],"guesses":["Chi-Yu","Sunflora","Naclstack","Sandy Shocks"],"averageNoGuesses":2.25}.split(";")Have added skeleton for displaying the user stats (not a typical UI working guy so this might take time :/ )
Please provide comments and improvizations !!
@CC007 @Fireblend