public override string ToString() { return(string.Format(CultureInfo.InvariantCulture, "{0} {1} {2}-{3} {4} {5} {6}", GameStatus.PadRight(10), (Away + (Possession == Away ? (RedZone ? "*" : ".") : " ")).PadLeft(4), AwayScore.ToString(CultureInfo.InvariantCulture).PadLeft(2), HomeScore.ToString(CultureInfo.InvariantCulture).PadRight(2), ((Possession == Home ? (RedZone ? "*" : ".") : " ") + Home).PadRight(4), Spread.ToString("+0.0;-0.0;PK ", CultureInfo.InvariantCulture).PadLeft(5), (ConfidencePoolAnalyzer.SmartRound(100 * HomeWinPct, 2) + "%").PadLeft(8) ) + (HomeWinPct != PrevHomeWinPct ? " (PREV: " + (ConfidencePoolAnalyzer.SmartRound(100 * PrevHomeWinPct, 2) + "%)").PadLeft(9) : "")); }
private string GamePredictionOut(Game game) { return($@"{ Game.GameDate.ToString("yyyy-MM-dd HH:mm") } { StringUtils.StringOfSize(4,game.AwayTeam) } { StringUtils.PadLeft( 3, AwayScore.ToString() ) } @ { StringUtils.StringOfSize(4, game.HomeTeam) } { StringUtils.PadLeft(3, HomeScore.ToString() ) }"); }