Type:

Other

Description:

Consider a game modeled after American baseball that involves a "state" that will be altered in a complex way by a sequence of "pitches" that are randomly either a "strike" or a "ball" according to a user-specified ratio. The "state" of the game is an inning integer, an out integer, a run integer, a "line score" substate, a count substate, or a three-element base occupation substate. At the start of the game, the state is ... . After each pitch, one examines and modifies the state of the game. In Stage 1 of this examination, when a strike is encountered, the second element of the count substate is incremented. When a ball is encountered, the first element of the count substate is incremented. The state is then examined. If the second element of the count is equal to a user-specified value (traditionally 3), the out component of the state is incremented and the count substate is reset to ... . If the first element of the count is equal to a user-specified value (traditionally 4), the count substate is reset to ... and the base occupation substate is examined and potentially modified. If the base occupation substate is ... , then the run component of the state is incremented; otherwise, the base occupation substate is rotated to the right and the first element replaced by ... . In Stage 2 of this examination, one examines the out component of the state. If it is equal to a user-specified value, one increments the inning, appends the current run state to the line score substate, resets the runs component to 0, and resets the out component to 0. One continues this process until the inning component of the state is greater than a user-specified value. This Demonstration outputs numerous statistics relating to the game created by this process. It outputs a "line score", a grid showing 11 elements of the simulated game, including the estimated "winning percentages" for each team, and an estimated game time. Exploring the controls shows that small changes in the percentage of strikes thrown or in the rules governing the progress of the game can have a dramatic effect on the outcome.

Subjects:

    Education Levels:

      Keywords:

      EUN,LOM,LRE4,work-cmr-id:397303,http://demonstrations.wolfram.com:http://demonstrations.wolfram.com/BaseballWithoutSwings/,ilox,learning resource exchange,LRE metadata application profile,LRE

      Language:

      Access Privileges:

      Public - Available to anyone

      License Deed:

      Creative Commons Attribution 3.0

      Collections:

      None
      This resource has not yet been aligned.
      Curriki Rating
      'NR' - This resource has not been rated
      NR
      'NR' - This resource has not been rated

      This resource has not yet been reviewed.

      Not Rated Yet.

      Non-profit Tax ID # 203478467