KingNook / 2048

https://kingnook.github.io/2048/
1 stars 0 forks source link

Add high score #8

Closed KingNook closed 1 month ago

KingNook commented 1 month ago

Context

I have been asked by a certain someone to add a 'high-score' counter to store the highest score yet (presumably on game end)

Thoughts / Challenges

as long as there is some sort of read-write access this should be fine. however, ig that might be an issue since this is hosted on github pages? hence the changed file would have to be committed and merged

Methods

not sure yet. may be necessary to have some sort of auto-commit for the data file so the github pages can store scores between sessions (or perhaps some cookie shenanigans)

KingNook commented 1 month ago

Due to side-effects of the Github Pages TOS, it seems like this may not be directly possible.

I'll close this for now, but if some brilliant idea comes to mind that allows this to work, I shall re-open this issue