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 difficulty distribution #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RasmusAntons
Copy link
Contributor

@RasmusAntons RasmusAntons commented May 24, 2024

This adds the option to configure a fixed distribution of goals for a difficulty. This is a suggestion for #14

For example, hard.json can look like this:

{
  "distribution": [
    0.0,
    0.2,
    0.4,
    0.4,
    0.0
  ],
  "number": 3
}

A game using that difficulty will consist of 20% easy, 40% medium and 40% hard goals.
This file can also be generated with absolute 5x5 numbers:

BingoDifficulty.builder(BingoDifficulties.HARD).number(3).distribution(0, 5, 10, 10, 0).build()

Caveats:

  • Perhaps it would be more useful to have a startup parameter instead so users don't need to create a datapack to use this.
  • It might be good to have some random variation parameter.
  • I don't know the code well and just hacked this in.

RasmusAntons added a commit to RasmusAntons/enigmatics_bingo_goals that referenced this pull request May 25, 2024
@RasmusAntons RasmusAntons force-pushed the fixed-difficulty-distribution branch from 06b605c to 8ce1f4d Compare June 7, 2024 00:01
@RasmusAntons RasmusAntons force-pushed the fixed-difficulty-distribution branch from 8ce1f4d to 9779074 Compare June 7, 2024 00:12
@Gaming32 Gaming32 linked an issue Nov 29, 2024 that may be closed by this pull request
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.

Option to start a game with mixed difficulty
1 participant