Skip to content

Comments

fixed difficulty distribution#18

Draft
RasmusAntons wants to merge 1 commit intoGaming32:mainfrom
RasmusAntons:fixed-difficulty-distribution
Draft

fixed difficulty distribution#18
RasmusAntons wants to merge 1 commit intoGaming32:mainfrom
RasmusAntons:fixed-difficulty-distribution

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 2 times, most recently 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
@RasmusAntons RasmusAntons force-pushed the fixed-difficulty-distribution branch from 9779074 to 0b9613a Compare January 28, 2025 19:10
@RasmusAntons RasmusAntons marked this pull request as draft February 7, 2025 20:18
@RasmusAntons RasmusAntons force-pushed the fixed-difficulty-distribution branch from 0b9613a to 43d57da Compare July 20, 2025 13:22
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