Customize Points for Bets
Opened this issue · 3 comments
chrislp commented
The people that I want to use fredbet for have their own schema for points.
Is there a way to customize that? I didn't find anything in the docs or config files, but I hope that I am just to blind to see it ...
They give
- 4 points: correct tip (e.g. result 2:1, tipp 2:1)
- 3 points: correct goal difference (e.g. result 3:1, tipp 2:0)
- 2 points: correct winning team (e.g. result 3:1, tipp: 1:0)
- 1 point: correct number of goals for one team (e.g. result 2:2, tip either x:2 or 2:x (with x!=2).
To me these rules are very specific and very weird, so my hopes are not very high - I'd be very happy if it was possible :)
fred4jupiter commented
Currently the ruleset is hardcoded. The 'correct number of goals for one team' is not yet possible to get points for. This may change in the future. Maybe I can refactor it to set the properties as environment variables at container startup. This way you have the choice to set different points as the default.
chrislp commented
I see. Thank you!
foam9953 commented
This would be an awesome feature!