Esempio n. 1
0
 /// <summary>
 /// Segment II
 /// Pointer 14: (p 74)
 ///   Special Rivalries
 ///     I look to wager on an out-of-contention underdog in a nationally telecast game
 ///     if it is one in which they are playing a longtime rival.  These are games in which 
 ///     out-of-contention teams look to get very fired up.
 /// 
 /// </summary>
 /// <param name="team"></param>
 /// <param name="upcomingGame"></param>
 /// <returns></returns>
 public static bool SpecialRivalries( NflTeam team, NFLGame upcomingGame )
 {
     bool isSpecialRivalry = false;
      if ( upcomingGame.IsOnTv )
      {
     if ( team.IsRival( upcomingGame.Opponent( team.TeamCode ) ) )
     {
        if ( upcomingGame.IsDog( team ) )
        {
           if ( team.IsOutOfContention() )
              isSpecialRivalry = true;
        }
     }
      }
      return isSpecialRivalry;
 }
 public void TestOpponent()
 {
     var g = new NFLGame("2016:04-J");
      var opp = g.Opponent( "DB" );
      Assert.AreEqual( "TB", opp );
 }