rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.1k stars 324 forks source link

SMART_REFINED bet strategy options #550

Open Khanattila opened 1 week ago

Khanattila commented 1 week ago

Is your feature request related to a problem?

It is a refinement of the already existing SMART strategy. Sometimes it happens that there are options that have both the highest bets and the most votes, in which case they will be selected anyway even though the percentages are ridiculously in favour of one of the two options.

Proposed solution

The introduction of a limit would allow the safest option to be selected in these cases. This is a very simplistic but quite effective solution.

// pseudocode
if (difference_odds > percentage_limit) {
    return PERCENTAGE;
}
else if (difference_users > percentage_gap) {
    return MOST_VOTED;
}
else {
    return HIGH_ODDS;
}

Alternatives you've considered

No response

Additional context

No response

Khanattila commented 5 days ago

Alternatively, a more sophisticated solution would be the following:

// pseudocode
if (difference_odds > p_limit || difference_users > p_gap) {

    w_percentage = difference_odds * p_limit^2;
    w_most_voted = difference_users * p_gap^2;

    result = max(w_percentage, w_most_voted);

    if (result == w_percentage) {
        return PERCENTAGE;
    }
    else {
        return MOST_VOTED;
    }
}
else {
    return HIGH_ODDS;
}