Skip to content

Instantly share code, notes, and snippets.

@squarism
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squarism/c742d3ded0964e30ce07 to your computer and use it in GitHub Desktop.
Save squarism/c742d3ded0964e30ce07 to your computer and use it in GitHub Desktop.
Baseball Stories
Strike Out
----------
1. Pitcher pitches ball
2. A strike happens
3. Umpire sees strike
4. Umpire updates internal count
5. Umpire shouts strike to field
6. Pitcher pitches ball, after hearing call in field
... repeat
7. Third strike is called
8. Umpire tells batter he's out
9. The field calls the next batter? (improvement: the team box produces the next batter)
Ball Walk
---------
1. Pitcher pitches ball
2. A ball happens
3. Umpire sees ball
4. Umpire updates internal count
5. Umpire shouts ball to field
6. Pitcher pitches ball, after hearing call in field
... repeat
7. Fourth ball is called.
8. Umpire tells batter to take base.
9. The field calls the next batter? (improvement: the team box produces the next batter)
Inning
------
1. One team takes the field, one team starts batting.
2. Batting happens until 3 outs happen.
3. The teams switch places.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment