ricardoboss / Prolangle

A game about programming languages.
https://prolangle.ricardoboss.de
MIT License
2 stars 1 forks source link

Weighted randomizer #121

Open chucker opened 4 months ago

chucker commented 4 months ago

Is your feature request related to a problem? Please describe.

After a while, both puzzles become too easy to solve, especially when a language is commonly known.

Describe the solution you'd like

Change the randomized to be weighted against the TIOBE index. Thus, the less well-known a language is, the more frequently it is the solution.

Additional context

evaluate: https://github.com/BlueRaja/Weighted-Item-Randomizer-for-C-Sharp/wiki/Getting-Started

and more generally: https://stackoverflow.com/questions/56692/random-weighted-choice

ricardoboss commented 4 months ago

I like the library you linked. Have you started work on a PR to implement this?