mvsil

fantasy_football_calculations

Aug 6th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. User start balance: 1000;
  2. Avg. player price (based on current csvs): 66;
  3.  
  4. ////////////////////////////////////
  5.  
  6. (event_type price score)
  7. GOOD EVENTS
  8. -------
  9. goals 0.24 8
  10. assists 0.18 6
  11. saves 0.18 6 // for goalkeeper only
  12. -------
  13. BAD EVENTS:
  14. -------
  15. missed_passes -0.06 -2
  16. yellow_cards -0.09 -3
  17. red_cards -0.18 -6
  18. goals_conceded -0.18 -6 // for goalkeeper only
  19. -------
  20.  
  21. ////////////////////////////////////
  22.  
  23. The suggestion:
  24. K = 0.03 // price to score ratio
  25. SCORE = (EVENT_TYPE_1*SCORE_1 + EVENT_TYPE_2*SCORE_2 + ... + EVENT_TYPE_N*PRICE_N);
  26. NEW_PRICE = CUR_PRICE + (SCORE * K);
Add Comment
Please, Sign In to add comment