Skip to content
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

Open
JamshidTashpulatov opened this issue Mar 5, 2019 · 5 comments
Open

How to save input actions? #17

JamshidTashpulatov opened this issue Mar 5, 2019 · 5 comments

Comments

@JamshidTashpulatov
Copy link

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.

@bradzo
Copy link

bradzo commented Feb 27, 2021

Hi @JamshidTashpulatov

That's something I'm working on right now.
Did you manage to get that sorted out?

Cheers
Brad

@bradzo
Copy link

bradzo commented Feb 28, 2021

Hi @JamshidTashpulatov

See my post re "show stored puzzle attempts" - that may give you a clue.
:)

@vidyeshranade
Copy link

Hello Brad,

How to save the answer entered by user into attempts key?

best regards,
Vidyesh

@bradzo
Copy link

bradzo commented May 27, 2022

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) 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

@vidyeshranade
Copy link

vidyeshranade commented May 30, 2022 via email

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

No branches or pull requests

3 participants