{"id":145,"date":"2026-04-24T14:37:08","date_gmt":"2026-04-24T14:37:08","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/l_smith\/?p=145"},"modified":"2026-04-24T14:37:08","modified_gmt":"2026-04-24T14:37:08","slug":"hsbb-sim","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/l_smith\/2026\/04\/24\/hsbb-sim\/","title":{"rendered":"HSBB sim"},"content":{"rendered":"\n<figure class=\"wp-block-video\"><video height=\"1006\" style=\"aspect-ratio: 1820 \/ 1006;\" width=\"1820\" controls src=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2026\/04\/20260424-1409-02.4031515.mp4\"><\/video><\/figure>\n\n\n\n<p> <a href=\"https:\/\/docs.google.com\/document\/d\/1EyYmGvkP70KP1cyILooYDABwdhs2LUYRx0UMb61roIA\/edit?tab=t.ey5v3elbbpig\">https:\/\/docs.google.com\/document\/d\/1EyYmGvkP70KP1cyILooYDABwdhs2LUYRx0UMb61roIA\/edit?tab=t.ey5v3elbbpig<\/a> <\/p>\n\n\n\n<p>this is my plan btw theres a idea tab so u can add ideas for me to add  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import random\nimport math\n\nclass Team:\n    def __init__(self, name, state, rating, seed=1):\n        self.name = f\"{name} ({state})\"\n        self.rating = rating\n        self.seed = seed\n\n    def __repr__(self):\n        return f\"({self.seed}) {self.name}\"\n\nclass NationalTournamentSim:\n    def __init__(self):\n        # Top 2026 Seeds based on current rankings (April 2026)\n        self.field = &#91;\n            Team(\"Venice\", \"FL\", 99, seed=1),      # No. 1 in Perfect Game\n            Team(\"Orange Lutheran\", \"CA\", 98, seed=1), # No. 2 in MaxPreps\/PG\n            Team(\"Tomball\", \"TX\", 97, seed=2),     # No. 4 in PG, No. 1 in MaxPreps\n            Team(\"Barbe\", \"LA\", 96, seed=2),       # Longest win streak (32 games)\n            Team(\"St. John Bosco\", \"CA\", 95, seed=3),\n            Team(\"Grapevine\", \"TX\", 94, seed=3),\n            Team(\"Harvard-Westlake\", \"CA\", 93, seed=4),\n            Team(\"IMG Academy\", \"FL\", 92, seed=4),\n        ]\n        \n    def simulate_game(self, t1, t2):\n        # Baseball scoring logic (lower scores, rare shutouts)\n        win_prob = t1.rating \/ (t1.rating + t2.rating)\n        winner = t1 if random.random() &lt; win_prob else t2\n        \n        score_w = random.randint(2, 9)\n        score_l = random.randint(0, score_w - 1)\n        # Extra innings simulation if needed\n        return winner, (score_w, score_l)<\/code><\/pre>\n\n\n\n<p>the NHSI ( nashtal high school invantaional) is a 64 team turnment based on the end of the state playoff  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"359\" height=\"258\" src=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2026\/04\/image-1.png\" alt=\"\" class=\"wp-image-147\" srcset=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2026\/04\/image-1.png 359w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2026\/04\/image-1-300x216.png 300w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/figure>\n\n\n\n<p>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 <\/p>\n\n\n\n<p>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 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class UmpireCalls:\n    def __init__(self):\n        self.calls = &#91;\n            \"Balk\", \n            \"Infield Fly Rule\", \n            \"Batter Interference\", \n            \"Catcher's Interference\",\n            \"Illegal Pitch\",\n            \"Dugout Warning\"\n        ]\n    <\/code><\/pre>\n\n\n\n<p>so im working on the teams next week <\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/docs.google.com\/document\/d\/1EyYmGvkP70KP1cyILooYDABwdhs2LUYRx0UMb61roIA\/edit?tab=t.ey5v3elbbpig this is my plan btw theres a idea tab so u can add ideas for me to add 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 [&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-145","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/145","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=145"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/145\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/145\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/media?parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/categories?post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/tags?post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}