squirdle icon indicating copy to clipboard operation
squirdle copied to clipboard

Add Cookie to store pokemon stats.

Open karthiksmanian opened this issue 2 years ago • 2 comments

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

karthiksmanian avatar Dec 05 '23 12:12 karthiksmanian

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

Fireblend avatar Dec 11 '23 14:12 Fireblend

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

karthiksmanian avatar Dec 23 '23 12:12 karthiksmanian