{"id":52,"date":"2025-10-24T15:38:07","date_gmt":"2025-10-24T15:38:07","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/l_smith\/?p=52"},"modified":"2025-10-24T15:38:07","modified_gmt":"2025-10-24T15:38:07","slug":"nfl-day-7","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/l_smith\/2025\/10\/24\/nfl-day-7\/","title":{"rendered":"nfl day 7"},"content":{"rendered":"\n<p>7 weeks in and we added a draft  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import random\ndef initialize_mock_draft(teams, players_data, rounds):\n    draft_order = teams * rounds # Example: snake draft order could be more complex\n    drafted_players = &#91;]\n    return draft_order, drafted_players\n\ndef make_pick(team, available_players, drafted_players):\n    # Simple logic: pick the highest-ranked available player\n    best_player = None\n    for player in available_players:\n        if player not in drafted_players:\n                best_player = player\n    if best_player:\n        drafted_players.append(best_player)\n        return best_player\n    return None\n\n# Example usage (simplified):\nteams = &#91;\"Arizona Cardinals\", \"Atlanta Falcons\", \"Baltimore Ravens\", \"Buffalo Bills\",\n        \"Carolina Panthers\", \"Chicago Bears\", \"Cincinnati Bengals\", \"Cleveland Browns\",\n        \"Dallas Cowboys\", \"Denver Broncos\", \"Detroit Lions\", \"Green Bay Packers\",\n        \"Houston Texans\", \"Indianapolis Colts\", \"Jacksonville Jaguars\", \"Kansas City Chiefs\",\n        \"Las Vegas Raiders\", \"Los Angeles Chargers\", \"Los Angeles Rams\", \"Miami Dolphins\",\n        \"Minnesota Vikings\", \"New England Patriots\", \"New Orleans Saints\", \"New York Giants\",  \"New York Jets\", \"Philadelphia Eagles\", \"Pittsburgh Steelers\", \"San Francisco 49ers\",\n        \"Seattle Seahawks\", \"Tampa Bay Buccaneers\", \"Tennessee Titans\", \"Washington Commanders\"]\n\nplayers = {random.randint(1, 400): {'name'= f'Player {i}', 'pos'= random.choice(&#91;'QB', 'RB', 'WR', 'TE', 'OL', 'DL', 'LB', 'CB', 'S']), 'college'= f'College {random.randint(1, 100 )}\ndraft_order = random.sample(teams, len(teams)) * 7 <\/code><\/pre>\n\n\n\n<p>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&#8217;s Mr. Irrelevant. is&#8230; <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"543\" src=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/10\/image-4-1024x543.png\" alt=\"\" class=\"wp-image-53\" srcset=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/10\/image-4-1024x543.png 1024w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/10\/image-4-300x159.png 300w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/10\/image-4-768x407.png 768w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/10\/image-4.png 1247w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>this will add the next level of realsim to the program <\/p>\n\n\n\n<p>this was step 24 out of hopefly 35 so im close <\/p>\n","protected":false},"excerpt":{"rendered":"<p>7 weeks in and we added a draft 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":54,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/52\/revisions\/54"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}