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);
        }
Esempio n. 2
0
        public NFLBet IsBettable(NFLGame game)
        {
            NFLBet bet = null;

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

            return(bet);
        }
Esempio n. 3
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);
        }
Esempio 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);
         }
     }
 }