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

Incorrect calculation of rate in ButtonPusher #5

Closed
ricerox opened this issue Jun 26, 2021 · 1 comment
Closed

Incorrect calculation of rate in ButtonPusher #5

ricerox opened this issue Jun 26, 2021 · 1 comment

Comments

@ricerox
Copy link

ricerox commented Jun 26, 2021

The prompt explaining how ButtonPusher works states that the time to push buttons is one minute. The actual duration is only ten seconds, though.
Still, the calculation for the rate of pushed buttons per second still uses 60 seconds as the duration and the amount of button pushes is divided by 60 (seconds) which leads to a wrong result.

This problem can either be fixed by actually setting the time to wait to one minute/60 seconds or by adjusting the calculation.

@vatbub
Copy link
Owner

vatbub commented Jun 26, 2021

Hey :) Thanks for pointing that out :) This is a piece of code that I wrote years ago and I completely forgot about it 🙈 I just fixed it, the timer now runs 60 seconds. The only remaining issue is that if you type "exit" to end the mini game prematurely, the rate is still calculated based on 60 seconds.

Cheers :)

@vatbub vatbub closed this as completed Jun 26, 2021
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

2 participants