Skip to content

Conversation

@karthiksmanian
Copy link

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

@Fireblend
Copy link
Owner

Interesting! It'd be fun to integrate these, at least as a hover text somewhere. I'll give it some thought. Thanks!

@karthiksmanian
Copy link
Author

Thanks for the review @Fireblend .only thing thats blocking me is the ui for the stats (hover text), i'll try to sit and work on it whenever possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants