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;
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        /// <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;
        }
Exemplo n.º 4
0
 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;
     }
 }
Exemplo n.º 5
0
        public NFLBet IsBettable( NFLGame game )
        {
            NFLBet bet = null;

             if ( HomeDog( game ) )
            bet = new NFLBet( game.Dog(), game, Name + " - " + game.Spread, ConfidenceLevel() );

             return bet;
        }