plbrault / youre-the-os

A game where you are a computer's OS and you have to manage processes, memory and I/O events.
https://plbrault.github.io/youre-the-os/
GNU General Public License v3.0
1.79k stars 67 forks source link

highscores/scoring #95

Open jbrokamp opened 1 year ago

jbrokamp commented 1 year ago

Some questions about scores:

1 .Some way to keep track of (personal) high scores? Either stored client-side (web storage), or on itch.io / server?

  1. Another thing is, that I get way higher score on EASY (500k, 10 minutes) than on NORMAL (150k, 4 minutes), it could be nice to give higher rewards on harder difficulties, to incentivize the harder difficulties?

  2. Bonus points when you gracefully terminate a process? Gives some incentive to focus more on processes with lower id, also clears out RAM more efficiently that way. Maybe even visualize the progress of a process somehow.

Wiguwbe commented 1 year ago

Hey,

I don't know about 1),

Regarding 2), not knowing about the scoring method, either way I think there should always be a differentiation between the difficulties. Even if the scoring was leveled, it probably is hard to compare between difficulty levels.

For 3), it looks like that, if the process is green and in CPU, for each tick, there is a 1% change of the process terminating. I do agree that a process having a predetermined number of ticks to run could add another level to the game :)

plbrault commented 1 year ago

Not sure about visualising the progress of a process towards graceful termination, as an OS does not know when a process is going to end. Also, right now the player does get 1000 extra points whenever a process gracefully terminates.

plbrault commented 4 months ago

There seems to be a way with pygbag to use the browser's local storage: https://pygame-web.github.io/wiki/pygbag-code/#handling-persistent-data-across-sessions

This would probably be the way to go to implement local high scores in the browser.