I Wrote A Computer Code to Cheat at MLB The Show
Вставка
- Опубліковано 17 сер 2023
- PSA: I do not endorse cheating (Unless you're really, really bad)
Use code JAROD for $20 off your first SeatGeek order. seatgeek.onelink.me/RrnK/JAROD
MERCH: SluggerSociety.com
Follow Trodeeboy13 on Twitch: / trodeeboy13
Follow me on Instagram: / jarodactl
Follow me on TikTok: / jarodactyl
Join the Discord: / discord
Music from @Lud and Schlatts Musical Emporium / @ludandschlattsmusical... - Ігри
Absolute W Video. Thanks for having me on!
Anytime man. Thanks for making me look like a scrub
Astros: WRITE THAT DOWN WRITE THAT DOWN
I showed this video to a developer I know who used to work with SDS, and it's interesting because the AI they use for batters basically do the same thing. They predict a pitch based off your pitch types, and a location, and based on how well the pitcher releases the ball and other factors included, if it goes in the zone they predicted, it's usually a bomb. So theoretically, you could use this program for the perfect game moment or any pitching moments with your own pitches and throw something different then what the program predicts you're going to pitch and you should do better then if you went in pitching blind.
Imagine if Jarod did this in ranked 💀
💀
He’s playing against the computer in extreme where he’s doing this and ranked is online
Ranked wouldn’t work cause humans have mind we all don’t follow the same code, except for the noobs
@@SaltoDaKid pretty much. You *can* absolutely pick up on tendencies, but if your opponent is smart, they'll figure that out and start employing tendency breakers. Online is a chess match
@@matthewbless3335 All i do is throw inside, I thought I was a genius until I hit all-star.
no trash cans were banged in the making of this video
Knowing the pitch doesn’t help any. The same way having steroid guy doesn’t help. Still need to smack the ball.
@@spicerc1244 it was a joke man, no need to be so serious over it.
@@misterjjbro I asked your mom and she said you were serious
Humans are more prone to patterns than cpu. This would be OP in ranked
As a professional commercial video editor, I can confirm that your editing is stellar. Keep it up amigo
Thanks man! Working on it
its always a good day when jarod drops
Do it in ranked 💀
Bro would make world series in like 2 hours
How would that work you need lots of data and everyone pitches differently
Gotta say when I subscribed I was not expecting the next vid to pull out the markov chain but I am all here for it
The Astros don’t have anything on Jarod 🗣️🗣️🗣️
🗑️🗑️💥💥💥
Jarod never fails to entertain us
It's my job 🫡
@@Jarodactylrespect soldier 🫡
Ok Jaro you NEED to try this in Challenge of the Week. You can easily play that a whole bunch of times and if you successfully beat the computer you win some cool real life stuff.
Very entertaining! Sometimes it get on my nerves, good swings to an easy catch but can't stop playing 😂
The amount of times I've gotten a fielder's choice on one of these challenges is infuriating lol. Trodeeboy's was an obvious one but there's times where I'm 3/4 to 2nd base and the cutoff man throws home and I still get a fielders choice lol.
Shits wack
love your videos! Keep up the good work!
The man who got me into the show has posted! , always entertaining
it would probably legit work better against a human with their own unique tendencies than with an AI pitcher thats close to true random. Not that you should of course 🤐 😁
100%
It would be really entertaining though💀
why am i just now realizing that getting slightly under the ball makes it a perfect/perfect
I've always wanted to try this, but I don't know how to code well enough. Not sure if you did this later in the video but you should also give it the count because that would also affect locations and pitch type
cheating? bro is just using sabermetrics LOL
Free entertainment with no paid subscription
This is beautiful Jacob
This video reason Barry Bonds need be in the hall of fame. Even if you cheat still doesn’t make you better. Pure skill what makes you incredible
Barry Bonds, Roger Clemens, Sammy Sosa, Mark McGuire didn't need to cheat: they were already great players so cheating, as they did was idiotic. They all would have been hall of famers; they wouldn't have had their *current stats but they still would have been seen as great but they cheated and made those who didn't cheat, like Fred McGriff, have to wait to be seen as great players they were because people kept (or keep) comparing their stats to those who cheated. Which is why none of them should ever be allowed into the hall of fame. And, I hope they never are.
bro what? lol cheating absolutely makes you better... why do you think so many people did it? Why do you think so many people still do it? Just to feel good? Yes, obviously barry bonds was insane and would have been good with or without the juice but it obviously made him a better player. Just look at the numbers, the homerun record stood for 37 years and then was broken 6 times in 4 seasons in the height of the steroid era. You think that was just coincidence? lol c'mon. I played in college and pro ball. I have watched dudes go from middling minor leaguers to bonified major leaguers over night. You wanna know why? I'll give you a hint: it wasn't a complete breakfast in the morning.
Thats not even mentioning what an ass bonds was. We're talking about a guy who's teammates hated him so much he got voted off his college team by HIS OWN TEAMMATES. Think about that. They hated the best player by far on their team so much, they'd rather just kick him off than deal with him. That's not even mentioning that he got traded by the Pirates after winning two MVP's cause they couldn't stand him. Fans in pittsburgh called him the MDP instead of the MVP for "Most Despised Pirate" lol. I also once saw him charge a kid $20 for an autograph before a game...
Agreed, even in the early days of baseball when the hitter could legit tell the pitcher exactly what pitch to throw and a good amount of those guys still made it into the HoF
Even when school starts in a few days Jarodactyl never fails to make you day better
*in a way* this is how the Astros cheated too.
They had a similar program built to decipher teams sign patterns
Pretty cool that you k ow how to code as well
This would be called that Houston pitch guesser
Far more impressive than those "i did something unremarkable and you will definitely believe what happened" videos.
Best mlb the show vid this month
Astros are about to come out and hire you
You had great questions for him and he didn’t have the presentation skills to really formulate any concise answers
Bro just simulated the Astros 2017 season with an over complicated trash can
Jarod needs to go full Jarvis mode to do this in ranked 😂
You are the guy from tiktok!
I was expecting a computer vision cheat for MLB The show
Yeah same. He wasn't even recording the balls/strikes which affects the pitch type and location more than anything. Honestly not a very good effort
@@davedukuvni7823tbf he's just an average joe
Yo jarodactyl remember me from the bunt double tiktok live
i broke my phone so i cant go on tiktok lives until i repair it in a few days.
keep up the fire content
bro is going to be number 1 in the world next video 💀💀
Best video yet!
became the houston astros
Dudes smart af😂😂
I cannot do any of these moments either 😂 I think I’m a worse mlb the show player than you. I can’t even get a hit on legendary and I slam the PCI every time 😂
Ok jarod hear me out. i have an idea for a 0 overall video.
do can i win a world series with a 0 overall team?
just have dingus in the lineup, with 8 other dinguses with unique names. then have dingus slingerson and one i made up, dingus flingerson, on the mound with 3 others, and have releif dingersons, and closer dingerson. this will take a lot of time but i really hope it at least inspires you do do something like this! (love your content btw)
Balco without the cream lol
this is some pro Astros gameplay
Two home runs would also be 2 XBHs. Wanting to hit a double first is uhhhh "flawed logic." lol
The houston astros would like to know your location
You’re the Astros of mlb the show
Damn, he automated the Astros.
Better video title would be “I became the Houston Astros”
Can I show this video to people who think Astros stealing signs = Astros WS title?
me waiting for someone to leak the script to use against my friends
import tkinter as tk
import numpy as np
from sklearn.tree import DecisionTreeClassifier
class PitchPredictor:
def __init__(self):
self.pitch_data = {'speed': [], 'location': []}
self.model_speed = DecisionTreeClassifier()
self.model_location = DecisionTreeClassifier()
self.min_pitch_count = 5 # Minimum number of pitches before making predictions
self.correct_predictions = 0
self.total_predictions = 0
self.root = tk.Tk()
self.root.title("Pitch Predictor")
self.speed_buttons = [
("Fastest", "fastest"),
("Fast", "fast"),
("Slow", "slow"),
("Slowest", "slowest")
]
self.location_buttons = [
("Strike", "strike"),
("Ball", "ball")
]
self.pitch_speed = tk.StringVar()
self.pitch_location = tk.StringVar()
self.create_speed_buttons()
def create_speed_buttons(self):
for text, speed in self.speed_buttons:
color = self.get_speed_color(speed)
button = tk.Button(self.root, text=text, command=lambda s=speed: self.on_speed_button_click(s), bg=color)
button.pack()
def on_speed_button_click(self, speed):
self.pitch_speed.set(speed)
self.destroy_buttons()
self.create_location_buttons()
def create_location_buttons(self):
for text, location in self.location_buttons:
if location == "Ball":
button = tk.Button(self.root, text=text, command=lambda l=location: self.on_location_button_click(l), height=4, width=8)
else:
button = tk.Button(self.root, text=text, command=lambda l=location: self.on_location_button_click(l))
button.pack()
def on_location_button_click(self, location):
self.pitch_location.set(location)
self.pitch_data['speed'].append(self.encode_speed(self.pitch_speed.get()))
self.pitch_data['location'].append(self.encode_location(location))
self.destroy_buttons()
if len(self.pitch_data['speed']) >= self.min_pitch_count:
self.train_models()
self.predict_pitch()
self.calculate_accuracy()
self.create_speed_buttons()
def destroy_buttons(self):
for widget in self.root.winfo_children():
widget.destroy()
def train_models(self):
X_speed = np.array(self.pitch_data['location']).reshape(-1, 1)
y_speed = self.pitch_data['speed']
self.model_speed.fit(X_speed, y_speed)
X_location = np.array(self.pitch_data['speed']).reshape(-1, 1)
y_location = self.pitch_data['location']
self.model_location.fit(X_location, y_location)
def predict_pitch(self):
last_speed = self.encode_speed(self.pitch_speed.get())
last_location = self.encode_location(self.pitch_location.get())
predicted_speed = self.decode_speed(self.model_speed.predict([[last_location]])[0])
predicted_location = self.decode_location(self.model_location.predict([[last_speed]])[0])
print("---------------")
print(f"Predicted Next Pitch Speed: {predicted_speed}")
print(f"Predicted Next Pitch Location: {predicted_location}")
actual_speed = self.pitch_data['speed'][-1]
actual_location = self.pitch_data['location'][-1]
if predicted_speed == self.decode_speed(actual_speed) and predicted_location == self.decode_location(actual_location):
self.correct_predictions += 1
print("Correct Prediction!")
else:
print("Incorrect Prediction")
self.total_predictions += 1
def calculate_accuracy(self):
accuracy = round((self.correct_predictions / self.total_predictions) * 100, 1)
print(f"Accuracy: {accuracy}% (Correct: {self.correct_predictions}/{self.total_predictions})")
def encode_speed(self, speed):
encoding_map = {"fastest": 4, "fast": 3, "slow": 2, "slowest": 1}
return encoding_map.get(speed, 0)
def encode_location(self, location):
encoding_map = {"strike": 1, "ball": 0}
return encoding_map.get(location, 0)
def decode_speed(self, encoded_speed):
decoding_map = {4: "fastest", 3: "fast", 2: "slow", 1: "slowest"}
return decoding_map.get(encoded_speed, "unknown")
def decode_location(self, encoded_location):
decoding_map = {1: "strike", 0: "ball"}
return decoding_map.get(encoded_location, "unknown")
def get_speed_color(self, speed):
color_map = {"fastest": "red", "fast": "orange", "slow": "green", "slowest": "blue"}
return color_map.get(speed, "white") # Default to white if speed is not in the map
def run(self):
self.root.mainloop()
if __name__ == "__main__":
predictor = PitchPredictor()
predictor.run()
time to do this online
ive always wondered if using code would actually be good in the show🤣
How tf is this cheating, it's just analytics and patterns...this is no different to writing down the pitch types and doing this manually, only you automated it and threw some math in there with a bit of Python!
its nothing like The extreme to make me uninstall the game.
Hey Jarod when is your video frequency?
hey jarod. Did someone ever win the Mccovey cove challenge?
Jarod your the goat
In a sence this isn’t cheating… because he’s not altering his gane he’s just using math
Did you run any sort of accuracy test on that algorithm? Could it do any better than just selecting a pitch based on the distribution of past pitches?
It actually does much better if I limit the pitch types to "fastball" or "off speed", but I feel like that was a cop out
@@Jarodactyl That makes sense from a statistics standpoint. Out of curiosity, how much better than random guessing did the algorithm turn out to be?
@@nyphron3109location AND pitch type were rarely both correct, but about 3x more accurate than random. Pitch type alone however was actually quite accurate. Mostly just because these pitchers are programmed to favor their top two pitches much more heavily than the rest, so it's inevitable that the pattern notices. This pitcher threw a fastball or sinker about 70% of the time, and the code followed accordingly.
Not an ideal experiment though because there are so many variables that would cause him to favor a different pitch- mainly pitch count.
@@Jarodactyl Very interesting. Thanks for indulging my technical questions! Keep up the good work.
i thought trodee was bill burr
can't believe analytics is cheating now smh
Awesome video! Dude thinks he's the cheating Astros
EXTREME
If you want to do this online guys just do it with your brain
It’s zen in a nut bag and a lot of players do use it on ranked season. Ranked season is cheating it ain’t baseball that’s for sure
he is a basketball fan not a baseeball fan
I didn’t know this guy was so much of a nerd
🔥
6:38 what is that background music
From Lud and Schlatt's Musical Emporium
A fielder’s choice damn this game cheats a lot…
is that jesse
amazing video! commenting before a million views!!!
How much did the Astros pay you to write the script?
Shush the astros will steal this idea and use it just eatch
No respect for pep8
Do you play on pc?
Good
MOOOOOM I NEED SOME HOT POCKES JAROD JUST UPLOADED!
💀
😮
We need him to try this in ranked on an alt acc
I found so many patterns playing Conquest games in MLB The Show 22 that I win 99.9% of all games on Rookie and Veteran. 96% of all games on All-Star, and 90% of all games on Hall of Fame. I don't play Legend, don't see a point to it, at all. However, I mainly stick to Rookie and Veteran 'cause I'm average at hitting and suck at fielding. Pitching is all I'm really good at. The above is just in Conquest; the patterns may be elsewhere but I had already finished all the Showdowns, Programs, RTTS, M2O, and Franchise before finding all the patterns.
I'm currently just playing 22 to get all 4 Squads Parallel 5 players (including bench and ALL pitchers.) So far 1 full Squad (bench too, with all pitchers), and the 2nd Squad just need a Catcher, and 2 on the bench; everyone else is finished; 3rd squad has outfielders, 1st and 3rd base, Starters and some relievers but that's it-all at 1,600 hrs.
I don't have recording like y'all but if I ever finish all 4 Squads at Parallel 5 I may put that on my page. I play on an Xbox One S.
Could I please have the full code please
W video
jarod >>>> astros 🗑🗑🗑🗑🗑🗑🗑🗑🗑🗑
W
2000TH VIEW🎉🎉🎉🎉🎉
NERD 😎
Don’t say the Lord’s name in vain and don’t curse. Forget the past and live in the present with Christ or if you’ve not yet, turn to Him now! He’s waiting with open arms. He’s always been chasing you through every up and down. All you gotta do is turn around. 🙏✝️❤️
def main():
root = Tk()
Cube(root)
root.mainloop()
one 2
def main():
root = Tk()
Trainer(root)
root.mainloop()
3 def main():
root = Tk()
App(root)
root.mainloop()