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

Feature Request: Keeping Score #7

Open
felixjulianheitmann opened this issue Nov 29, 2021 · 0 comments
Open

Feature Request: Keeping Score #7

felixjulianheitmann opened this issue Nov 29, 2021 · 0 comments

Comments

@felixjulianheitmann
Copy link
Contributor

felixjulianheitmann commented Nov 29, 2021

I like the idea to keep score. Of course, this implies keeping track of the top times but also measuring the win/lose ratio. I think the minesweeper I used on WinXP when I had no other games would tell me, that I win about 2% of my games.
I would really like to relive that depressing feeling.

As an initial input, I would suggest logging wins, losses, cancelled games and the x top timings for any game. I usually play with custom width/height/mines. So I would hope to keep track of these stats not only for beginner, intermediate and expert but also for my customs games. Maybe store the field size as additional score key.

When I find the time, I will try to dig into how to do this and send a PR for you to refactor.

Keep up the good work!

@felixjulianheitmann
At first, I didn't think it would be possible, but I've found this comment. Turned out you can write commands to stdout to enter and exit fullscreen. I suppose tools like htop or nano use exactly this. Also turned out you can subscribe to stdout resize, so everything works like a charm, really like how it turned out.
Again, thanks for the ideas, for some reason I didn't think about clearing output at all. I have also found persistant library for npm packages, so we might try to track records, PR's are welcome :) Originally posted by @mordv in #3 (comment)

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

1 participant