def current_games(year=None, week=None, kind='REG'):
 if ((year is None) or (week is None)):
  (year, week) = current_year_and_week()
 guesses = []
 now = _now()
 games = _games_in_week(year, week, kind=kind)
 for info in games:
  gametime = _game_datetime(info)
  if (gametime >= now):
   if ((gametime - now).total_seconds() <= (60 * 15)):
    guesses.append(info['eid'])
  elif ((now - gametime).total_seconds() <= _MAX_GAME_TIME):
   guesses.append(info['eid'])
 current = []
 for guess in guesses:
  game = nflgame.game.Game(guess)
  if ((game is not None) and game.playing()):
   current.append(game)
 return current

def current_games ( year = None , week = None , kind = 'REG' ) : if ( ( year is None ) or ( week is None ) ) : ( year , week ) = current_year_and_week ( ) guesses = [ ] now = _now ( ) games = _games_in_week ( year , week , kind = kind ) for info in games : gametime = _game_datetime ( info ) if ( gametime >= now ) : if ( ( gametime - now ) . total_seconds ( ) <= ( 60 * 15 ) ) : guesses . append ( info [ 'eid' ] ) elif ( ( now - gametime ) . total_seconds ( ) <= _MAX_GAME_TIME ) : guesses . append ( info [ 'eid' ] ) current = [ ] for guess in guesses : game = nflgame . game . Game ( guess ) if ( ( game is not None ) and game . playing ( ) ) : current . append ( game ) return current
returns a list of game .