nfl day 7


7 weeks in and we added a draft

import random
def initialize_mock_draft(teams, players_data, rounds):
    draft_order = teams * rounds # Example: snake draft order could be more complex
    drafted_players = []
    return draft_order, drafted_players

def make_pick(team, available_players, drafted_players):
    # Simple logic: pick the highest-ranked available player
    best_player = None
    for player in available_players:
        if player not in drafted_players:
                best_player = player
    if best_player:
        drafted_players.append(best_player)
        return best_player
    return None

# Example usage (simplified):
teams = ["Arizona Cardinals", "Atlanta Falcons", "Baltimore Ravens", "Buffalo Bills",
        "Carolina Panthers", "Chicago Bears", "Cincinnati Bengals", "Cleveland Browns",
        "Dallas Cowboys", "Denver Broncos", "Detroit Lions", "Green Bay Packers",
        "Houston Texans", "Indianapolis Colts", "Jacksonville Jaguars", "Kansas City Chiefs",
        "Las Vegas Raiders", "Los Angeles Chargers", "Los Angeles Rams", "Miami Dolphins",
        "Minnesota Vikings", "New England Patriots", "New Orleans Saints", "New York Giants",  "New York Jets", "Philadelphia Eagles", "Pittsburgh Steelers", "San Francisco 49ers",
        "Seattle Seahawks", "Tampa Bay Buccaneers", "Tennessee Titans", "Washington Commanders"]

players = {random.randint(1, 400): {'name'= f'Player {i}', 'pos'= random.choice(['QB', 'RB', 'WR', 'TE', 'OL', 'DL', 'LB', 'CB', 'S']), 'college'= f'College {random.randint(1, 100 )}
draft_order = random.sample(teams, len(teams)) * 7 

this puts a draft in to the program it takes the standings from the last time u did this program and makes a draft from 1 to 32 for 7 rounds for a tolal number of picks of 262 orr as the nfl calls it Mr. Irrelevant.and it will print when it reaches pick 262 and this year’s Mr. Irrelevant. is…

this will add the next level of realsim to the program

this was step 24 out of hopefly 35 so im close


2 responses to “nfl day 7”

  1. I would like to see a little more of your thought process and less walls of code. Just post a little bit of code and explain it.

Leave a Reply to Larry JM Smith Cancel reply

Your email address will not be published. Required fields are marked *