-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to save input actions? #17
Comments
That's something I'm working on right now. Cheers |
See my post re "show stored puzzle attempts" - that may give you a clue. |
Hello Brad, How to save the answer entered by user into attempts key? best regards, |
Hi Vidyesh Unless I've misunderstood your question... Since the attempt key is simply part of the JSON data for each crossword entry (if you've followed what I posted at #23) then you can use whatever storage mechanism you like - Mongo, Localstorage, anything really. Up to you when you save it, depending on your solution, localStorage would probably be fastest as they enter each letter. Cheers |
Hello Brad,
Thanks for a warm reply.
I did the same as you suggested (using localStorage, simple and quick
approach).
It is now able to retrieve the correct answers of earlier visited puzzles.
I'll share my crossword link once I deploy on heroku.
I liked your showAttempt solution.
*best regards,Vidyesh Ranade+91 9850 88 91 88*
…On Fri, May 27, 2022 at 11:43 AM bradzo ***@***.***> wrote:
Hello Brad,
How to save the answer entered by user into attempts key?
best regards, Vidyesh
Hi Vidyesh
Unless I've misunderstood your question...
Since the attempt key is simply part of the JSON data for each crossword
entry (if you've followed what I posted at #23
<#23>) then you can use
whatever storage mechanism you like - Mongo, Localstorage, anything really.
Up to you when you save it, depending on your solution, localStorage would
probably be fastest as they enter each letter.
And to then continue a puzzle, get the puzzle data from whatever your
storage is and invoke my showAttempts function in puzzInit.
Cheers
Brad
—
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXPESPTJJBICQJGRJ3IUCDVMBRZ7ANCNFSM4G3XLNUA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
How can I save the data entered in this game while playing the game
LocalStorage
? To prevent the data entered from being updated while the page is up.The text was updated successfully, but these errors were encountered: