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

Fixed Golden Cookie percentage calculation to cdf #921 #1190

Merged
merged 3 commits into from
Sep 8, 2024

Conversation

Numbernaut
Copy link
Contributor

Changes the Golden Cookie probability percentage to a cumulative percentage, yielding the cumulative distribution as described by @CptHampton here

resolves #921

@DanielNoord
Copy link
Collaborator

Please make the changes in the relevant files. The file you are changing should be the build output.

@Numbernaut Numbernaut reopened this Sep 2, 2024
@Numbernaut
Copy link
Contributor Author

Initially, I made the changes directly to the CookieMonster.js file, which I now realize wasn't the best approach. I also mistakenly pushed the entire repository, including generated files, which was not ideal.

I've since reset the branch, applied the changes only to the relevant src/ files, and have pushed the updated commit. The changes should now align with the expected workflow. Please review the updated pull request.

@DanielNoord
Copy link
Collaborator

Sorry just saw your message. Could you also run the build?

@DanielNoord
Copy link
Collaborator

Do you want this to be available on the normal version? Then we also need to run build.

@Numbernaut
Copy link
Contributor Author

Did my last commit run the intended function?

@DanielNoord
Copy link
Collaborator

Yes it did.

I had a look at the code: shouldn't this be a toggle able feature? It seems like a breaking change that might not be appreciated by all users. Should we make this a setting to switch between the two calculations?

@Numbernaut
Copy link
Contributor Author

I understand what u mean, but it would effectively switch between showing "<0%" nearly all the time and the proposed implementation (Probability that GC has spawned until now).

In the end, I am indifferent to both solutions.
Maybe someone else can implement the switch, or if I should do it some pointers to relevant code snippets would be appreciated as i never really did UI

Copy link
Collaborator

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You know what, let's just merge this!

Thanks!

@DanielNoord DanielNoord merged commit 9e98208 into CookieMonsterTeam:dev Sep 8, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

Golden cookie percentage always shows as "<0%"
2 participants