private void Error(IScore score) { Errors++; score.Dump(); RosterLib.Utility.Announce(string.Format(" Error : {0} - {1} - {2}", NflWeek.WeekKey(":"), score.Error, score.PlayerId1)); }
private void Warn(string msg, IStat stat) { Warnings++; stat.Dump(); RosterLib.Utility.Announce(string.Format(" Warning : {0} - {1} - {2}", NflWeek.WeekKey(":"), msg, stat.PlayerId)); }
private void Error(IStat stat) { Errors++; stat.Dump(); RosterLib.Utility.Announce(string.Format(" Error : {0} - {1} - {2}", NflWeek.WeekKey(":"), stat.Error, stat.PlayerId)); }
public decimal AveragePoints(NFLPlayer p) { var prevWeek = NflWeek.PreviousWeek(NflWeek, false, regularSeasonGamesOnly: true); var nTotal = Scorer.RatePlayer(p, prevWeek); var twoWeeksAgo = prevWeek.PreviousWeek(prevWeek, false, regularSeasonGamesOnly: true); nTotal += Scorer.RatePlayer(p, twoWeeksAgo); var threeWeeksAgo = twoWeeksAgo.PreviousWeek(twoWeeksAgo, false, regularSeasonGamesOnly: true); nTotal += Scorer.RatePlayer(p, threeWeeksAgo); #if DEBUG // Announce(string.Format( "Total points last three games {0}", nTotal ) ); #endif return(nTotal / 3); }
private void GameError(string msg) { Errors++; Utility.Announce($" Error : {NflWeek.WeekKey(":")} - {msg}"); }
private void Error(IScore score) { Errors++; score.Dump(); Utility.Announce($" Error : {NflWeek.WeekKey(":")} - {score.Error} - {score.PlayerId1}"); }
private void Error(IStat stat) { Errors++; stat.Dump(); Utility.Announce($" Error : {NflWeek.WeekKey(":")} - {stat.Error} - {stat.PlayerId}"); }
private void Warn(string msg, IStat stat) { Warnings++; stat.Dump(); Utility.Announce($" Warning : {NflWeek.WeekKey(":")} - {msg} - {stat.PlayerId}"); }