public NFLBet IsBettable( NFLGame game ) { NFLBet bet = null; if ( game.Dog() == game.HomeTeam ) { // Have they lost yet bet = new NFLBet( game.Dog(), game, Name + " - " + game.Spread, ConfidenceLevel() ); } return bet; }
public NFLBet IsBettable( NFLGame game ) { NFLBet bet = null; if (game == null) throw (new ArgumentNullException("game", "parameter is null")); if ( BadNumber( game.Spread ) ) bet = new NFLBet( game.Dog(), game, Name + " - " + game.Spread, ConfidenceLevel() ); return bet; }
/// <summary> /// Segment II (Week 5-8) /// Pointer Ten: (p 74) /// Sunday or Monday Night Home Underdogs. /// As in the first four games, I look to bet Sunday or Monday night home underdogs /// when the power ratings favour them. /// </summary> /// <returns></returns> public static bool SundayOrMondayNightUnderdog( NflTeam team, NFLGame upcomingGame ) { bool isSundayOrMondayNightUnderdog = false; if ( upcomingGame.IsPrimeTime() ) { if ( upcomingGame.Dog().Equals( team.TeamCode ) ) if ( upcomingGame.HomeDog() ) isSundayOrMondayNightUnderdog = true; } return isSundayOrMondayNightUnderdog; }
private static bool HomeDog( NFLGame game ) { if ( Int32.Parse(game.Week) == RosterLib.Constants.K_WEEKS_IN_A_SEASON ) //Superbowl return false; else { if ( game.Dog() == game.HomeTeam ) return true; else return false; } }
public NFLBet IsBettable( NFLGame game ) { NFLBet bet = null; if ( HomeDog( game ) ) bet = new NFLBet( game.Dog(), game, Name + " - " + game.Spread, ConfidenceLevel() ); return bet; }