Beispiel #1
0
        /// <summary>
        ///   What is the teams spread range as of a particular week
        ///   Spread range tracks how teams are doing against the spread.
        ///
        /// </summary>
        /// <param name="seasonIn"></param>
        /// <param name="week"></param>
        /// <returns></returns>
        public decimal SpreadRange(string seasonIn, string week)
        {
            var totSpreadRange = 0.0M;
             // load the schedle
             _sched = new NFLSchedule(seasonIn, this);
             // for each game tally the spreadRange
             foreach (NFLGame g in _sched.GameList)
             {
            var myMargin = g.MarginFor(this);
            var expMargin = g.ExpMarginFor(this);

            var sr = DanGordan.SpreadRangeScore(myMargin, expMargin);
            totSpreadRange += sr;
            if (g.Week.Equals(week)) break; //  thats enough
             }
             return totSpreadRange;
        }
Beispiel #2
0
 private void InitialiseProjections()
 {
     //  Load Schedule
      var lastSeason = Int32.Parse(Season) - 1;
     #if DEBUG
      Utility.Announce("NFLTeam.InitialiseProjections: Loading schedule for " + lastSeason.ToString());
     #endif
      _sched = new NFLSchedule(Season, this);
      _prevSched = new NFLSchedule(lastSeason.ToString(), this);
      ProjectionList = new ArrayList();
 }
Beispiel #3
0
 public void LoadSchedule()
 {
     if (Season == null) Season = Utility.CurrentSeason();
      var lastSeason = Int32.Parse(Season) - 1;
      //RosterLib.Utility.Announce(string.Format("NFLTeam.LoadSchedule:Instantiating Schedule for {0}", season));
      _sched = new NFLSchedule(Season, this);
      //RosterLib.Utility.Announce(string.Format("NFLTeam.LoadSchedule:Instantiating Schedule for {0}", lastSeason));
      _prevSched = new NFLSchedule(lastSeason.ToString(), this);
 }