free friday 9/19- nfl project day 2


today was 1 class day so i was not able to get to much done but i got eough done the only negtive from today is it always picks the pittsburgh steelers and the tampa bay buccaneers

this adds to w-L record

# --- Simulate Scores ---
def simulate_scores(schedule):
    results = []
    for _, row in schedule.iterrows():
        home_score = random.randint(10, 40)
        away_score = random.randint(10, 40)
        winner = row["Home"] if home_score > away_score else row["Away"]
        loser = row["Away"] if winner == row["Home"] else row["Home"]
        results.append({
            "Week": row["Week"],
            "Home": row["Home"], "HomeScore": home_score,
            "Away": row["Away"], "AwayScore": away_score,
            "Winner": winner, "Loser": loser
        })

Leave a Reply

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