# Game Mechanics

[Game 5126 Durdens @ gators](https://vimeo.com/801629590) from [Moonshot Baseball](https://vimeo.com/moonshotbaseball) on [Vimeo](https://vimeo.com)

* Games are 3 Innings (unless extra-innings are needed)

## **Game Mechanics** <a href="#bfbe" id="bfbe"></a>

1. **Control Roll**

Each At-Bat begins with a roll to determine who will take control of the at-bat. The % odds of the hitter gaining control of the at-bat are defined as follows:

**( (Hitter Plate Discipline + 3)-Pitcher Pitch Command ) \* 5**

Ex: Hitter = 9, Pitcher = 3

Hitter Odds = ( (9 + 3)-3) \* 5 )\
Hitter Odds = (12-3) \* 5)\
Hitter Odds = 45%

**2. Event Roll**

After this the next roll will determine the outcome of the At-Bat, these odds are determined by each Baseballer’s At-Bat probability stats

<figure><img src="https://miro.medium.com/proxy/0*PKFQOeNRp_ZR_j6w.png" alt=""><figcaption></figcaption></figure>

**3. Fielding Errors**

If the event roll of the at-bat lands on OUT, then an additional roll takes place to determine whether or not there will be a fielding error. The odds of an error occuring are determined from the fielding team’s average FIELDING score

<figure><img src="https://miro.medium.com/max/722/0*RxBYH8VcgnnMiATe.png" alt=""><figcaption></figcaption></figure>

**4. Runners Taking Additional Bases**

If available, baserunners can sometimes take an additional base. The odds of this happening are determined by each baserunner’s SPEED

> **For Taking an Extra Base on hits:**

Speed 1: 0%\
Speed 2: 12.5%\
Speed 3: 25%\
Speed 4: 37.5%\
Speed 5: 50%\
Speed 6: 67.5%\
Speed 7: 75%\
Speed 8: 87.5%\
Speed 9: 100%

> **For Advancing on Outs:**

The percentages above are the same, except the “roll” of the at-bat adjusts the speed of the runner for this case. The at-bat roll ranges from 0–100. This means the higher up on the bar the out is, the higher likelihood the runner will advance.

Out-Advancing Speed = ( Speed + (Roll / 10) ) / 2

**5. Double Plays**

Speed of the Batter = 60% Weight\
Speed of the Runner = 20% Weight\
At-Bat Roll = 20% Weight

DP-Speed = ( (Batter Speed\*3) + Runner Speed + (At-Bat Roll/10) ) / 5

DP-Speed 1: 100%\
DP-Speed 2: 87.5%\
DP-Speed 3: 75%\
DP-Speed 4: 67.5%\
DP-Speed 5: 50%\
DP-Speed 6: 37.5%\
DP-Speed 7: 25%\
DP-Speed 8: 12.5%\
DP-Speed 9: 0%

**6. Pitching Stamina**

The amount of time the pitcher stays in the game is determined by their STAMINA. If a pitcher has a STAMINA of 4, they will be replaced by the next pitcher once they get 4 outs.

***In the event of extra innings, whichever pitcher finished the 3rd innings will stay in the game until it is finished***

*Pitcher performance does not change at all depending on how long they are in the game*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://moonshot-baseball.gitbook.io/moonshot-baseball/simulated-games/game-mechanics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
