Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give a possibility to write custom bet strategies #494

Open
KamushekDev opened this issue May 3, 2022 · 3 comments
Open

Give a possibility to write custom bet strategies #494

KamushekDev opened this issue May 3, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@KamushekDev
Copy link

KamushekDev commented May 3, 2022

Is your feature request related to a problem? Please describe.
I found that presented betting strategies aren't enough for me.

Describe the solution you'd like
I would like to have the possibility to provide a custom decision-making function to the BetSettings object. I imagine that function smth like (BetContext context) => BetDecision. Where BetContext contains all necessary information about a bet and BetDecision represents a decision like

{
  result: BetDecisionResult (BET_1, BET_2, BET_3, DONT_BET)
  amount: int
}

Describe alternatives you've considered

  • It could be made by changing the source code, but it would cause trouble with updates and could be damaging :c
  • Adding every betting strategy from pull requests is working but pretty messy approach. It would bloat strategies with some specific things in the long run.

Additional context
I didn't think over what information should be in a BetContext, but I assume there should be all available information.

@KamushekDev KamushekDev added the enhancement New feature or request label May 3, 2022
@KamushekDev
Copy link
Author

Maybe even allow redirect to built-in strategy as a decision.

@1v
Copy link
Contributor

1v commented May 9, 2022

@KamushekDev
Copy link
Author

#172

It's a PR for adding another strategy but this issue targets a more generic approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
2 participants