fredbet icon indicating copy to clipboard operation
fredbet copied to clipboard

Customize Points for Bets

Open chrislp opened this issue 1 year ago • 3 comments

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 :)

chrislp avatar Jun 27 '24 07:06 chrislp

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.

fred4jupiter avatar Jun 27 '24 18:06 fred4jupiter

I see. Thank you!

chrislp avatar Jul 01 '24 07:07 chrislp

This would be an awesome feature!

chilledhobbit avatar Jul 01 '24 20:07 chilledhobbit

It`s now possible to configure the points at runtime. Be sure to now change them while a match has started. You can find the new page in Admin -> Point configuration.

Image

fred4jupiter avatar Mar 16 '25 12:03 fred4jupiter