ajn2004/group_raiding

Betting PDT

Opened this issue · 0 comments

Attempt to explain the database logic so we can build the software logic to match it

To make a bet, we need

bet.py

  1. An event with outcomes for the player to bet on
  2. What outcome the player bets will result
  3. The amount the player wishes to wager

betEvent.py

  1. An event can have many bets
  2. Events have an expiration at which point a result is achieved
  3. Events have a variety of different possible outcomes

betOutcome.py

  1. An outcome has to belong to a single event
  2. Outcomes should be named

I think it may make sense to backref the outcome column on bet.py to the betOutcome.py id directly, and drop the outNumber column, but it will require some thought.