Home
Welcome to the Python Pitching Simulator! Born as a school project of mine,
the Python Pitching Simulator is an easy-to-learn simulator of baseball
pitching. It can be run through any software that operates Python.
Download the latest version (v1.1) here. (See the "Downloads" page for older versions of the game.)
If you don't have software that can run Python, download the latest Python IDLE (Integrated Development and Learning Environment) from the official Python website: https://www.python.org.
To play the game, enter your team's name. You're playing against a team known as the Python Code Sox. You have 6 pitch options each time you pitch: Four-Seam Fastball, Changeup, Slider, Cutter, Sinker, and Curveball. Your goal is to strike the Code Sox's batters out without surrendering runs. You play for a total of 5 innings, which are considered an official game in Major League Baseball (although most games are played to 9 or more innings).
The beauty of this game is that it's in Python. That means you, the player, can edit the game all you want if you know Python. I'm excited to see what you guys come up with.
Keep pitching!
Frequently Asked Questions
Who made the Python Pitching Simulator?
The Python Pitching Simulator was written almost entirely by Rafael Mercado. Although he used AI for debugging, the actual code was written by him.
I have the Python IDLE. Why can't I run the game?
It's possible that your version is lower than Python 3.0. To run the game, you need an IDLE with version 3.0 or later. You can download the latest version from python.org.
Will the game receive updates?
Yes, Rafael is eager to continue making updates to the game. He hopes to add more outcomes, features, and pitches, as well as a Python Batting Simulator.