this is my plan btw theres a idea tab so u can add ideas for me to add
import random
import math
class Team:
def __init__(self, name, state, rating, seed=1):
self.name = f"{name} ({state})"
self.rating = rating
self.seed = seed
def __repr__(self):
return f"({self.seed}) {self.name}"
class NationalTournamentSim:
def __init__(self):
# Top 2026 Seeds based on current rankings (April 2026)
self.field = [
Team("Venice", "FL", 99, seed=1), # No. 1 in Perfect Game
Team("Orange Lutheran", "CA", 98, seed=1), # No. 2 in MaxPreps/PG
Team("Tomball", "TX", 97, seed=2), # No. 4 in PG, No. 1 in MaxPreps
Team("Barbe", "LA", 96, seed=2), # Longest win streak (32 games)
Team("St. John Bosco", "CA", 95, seed=3),
Team("Grapevine", "TX", 94, seed=3),
Team("Harvard-Westlake", "CA", 93, seed=4),
Team("IMG Academy", "FL", 92, seed=4),
]
def simulate_game(self, t1, t2):
# Baseball scoring logic (lower scores, rare shutouts)
win_prob = t1.rating / (t1.rating + t2.rating)
winner = t1 if random.random() < win_prob else t2
score_w = random.randint(2, 9)
score_l = random.randint(0, score_w - 1)
# Extra innings simulation if needed
return winner, (score_w, score_l)
the NHSI ( nashtal high school invantaional) is a 64 team turnment based on the end of the state playoff

i know ive done sims before but its becuase i know how to do them theyre honstly a little too easy whitch is why with every simulator i do i try to make them harder and more detall
i love baseball so i thoght why not as u can see from the details above im putting evcerything i have and i think pepole can tell if you put your hart in it so thats what im doing
class UmpireCalls:
def __init__(self):
self.calls = [
"Balk",
"Infield Fly Rule",
"Batter Interference",
"Catcher's Interference",
"Illegal Pitch",
"Dugout Warning"
]
so im working on the teams next week
2 responses to “HSBB sim”
This is an awesome idea, love the implementation. It’s also a great example of OOP. good luck, let me know if you need help.
what does OOP stand for