AdrKacz / scaling-broccoli

Arcade mobile video game that will get you crazy 🔥
MIT License
2 stars 1 forks source link

⭐️ Update card selection algorithm #150

Closed AdrKacz closed 2 months ago

AdrKacz commented 3 months ago

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

Cards are selected purely at random, you could find on a very hard card even if you are still super bad.

Describe the solution you'd like

Make sure to consider the level of the player when selecting a card (kind of a "max level stuff"). There shouldn't be need to use a random probability as it's already a weighted pick per level as there are more level 1 than level 3. So the number of card available tells you their rarety (if only 5Star over 100 card, you have 1/100 chance to get it) But to be adjusted with a "maximum level you can get" based on you latest performances. Maybe update according to the latest game (so if the player has a good strike right now, increase the chance to get a better card, I don't know, maybe not, keep it simple)

AdrKacz commented 3 months ago

That's kind of important. Had some testing with real users, they jump from a 1Star to a 70 Required, that was though, need to find a better way.