Gaming32 / bingo

A multiloader bingo mod
https://modrinth.com/mod/bingo-mod
MIT License
4 stars 2 forks source link

fixed difficulty distribution #18

Open RasmusAntons opened 4 months ago

RasmusAntons commented 4 months ago

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: