Functions
balk
- balk(): { display: "BK"; result: "BK"; type: "balk" }
-
Returns { display: "BK"; result: "BK"; type: "balk" }
-
display: "BK"
-
result: "BK"
-
type: "balk"
caughtStealing
- caughtStealing(putoutPositions: number[]): { display: string; result: { display: string; result: number[]; type: "putout" }; type: "caught-stealing" }
-
Parameters
-
putoutPositions: number[]
Returns { display: string; result: { display: string; result: number[]; type: "putout" }; type: "caught-stealing" }
-
display: string
-
result: { display: string; result: number[]; type: "putout" }
-
display: string
-
result: number[]
-
type: "putout"
-
type: "caught-stealing"
defensiveIndifference
- defensiveIndifference(): { display: "DI"; result: "DI"; type: "defensive-indifference" }
-
Returns { display: "DI"; result: "DI"; type: "defensive-indifference" }
-
display: "DI"
-
result: "DI"
-
type: "defensive-indifference"
error
- error(position: number): { display: string; result: number; type: "defensive-error" }
-
Parameters
Returns { display: string; result: number; type: "defensive-error" }
-
display: string
-
result: number
-
type: "defensive-error"
fieldersChoice
- fieldersChoice(baseAdvancedTo: Base): { display: "FC"; result: Base; type: "fielders-choice" }
-
Parameters
Returns { display: "FC"; result: Base; type: "fielders-choice" }
-
display: "FC"
-
-
type: "fielders-choice"
flyOut
- flyOut(defensivePlayer: number): { display: string; result: number; type: "flyout" }
-
Parameters
Returns { display: string; result: number; type: "flyout" }
-
display: string
-
result: number
-
type: "flyout"
hit
- hit(base: Base): { display: string; result: Base; type: "hit" }
-
Parameters
Returns { display: string; result: Base; type: "hit" }
-
display: string
-
-
type: "hit"
lineOut
- lineOut(defensivePlayer: number): { display: string; result: number; type: "lineout" }
-
Parameters
Returns { display: string; result: number; type: "lineout" }
-
display: string
-
result: number
-
type: "lineout"
passedBall
- passedBall(): { display: "PB"; result: "PB"; type: "passed-ball" }
-
Returns { display: "PB"; result: "PB"; type: "passed-ball" }
-
display: "PB"
-
result: "PB"
-
type: "passed-ball"
pickOff
- pickOff(putoutPositions: number[]): { display: string; result: { display: string; result: number[]; type: "putout" }; type: "pick-off" }
-
Parameters
-
putoutPositions: number[]
Returns { display: string; result: { display: string; result: number[]; type: "putout" }; type: "pick-off" }
-
display: string
-
result: { display: string; result: number[]; type: "putout" }
-
display: string
-
result: number[]
-
type: "putout"
-
type: "pick-off"
pitcherResult
-
Parameters
Returns { display: "K" | "BB" | "IBB" | "HB"; result: PitcherResultString; type: "pitcher-result" }
-
display: "K" | "BB" | "IBB" | "HB"
-
-
type: "pitcher-result"
putout
- putout(defensivePlayers: number[]): { display: string; result: number[]; type: "putout" }
-
Parameters
-
defensivePlayers: number[]
Returns { display: string; result: number[]; type: "putout" }
-
display: string
-
result: number[]
-
type: "putout"
runnerAdjustment
- runnerAdjustment(base: Base): { display: ""; result: Base; type: "runner-adjustment" }
-
Parameters
Returns { display: ""; result: Base; type: "runner-adjustment" }
-
display: ""
-
-
type: "runner-adjustment"
stolenBase
- stolenBase(base: AdvanceableBase): { display: "SB"; result: AdvanceableBase; type: "stolen-base" }
-
Parameters
Returns { display: "SB"; result: AdvanceableBase; type: "stolen-base" }
-
display: "SB"
-
result: AdvanceableBase
-
type: "stolen-base"
wildPitch
- wildPitch(): { display: "WP"; result: "WP"; type: "wild-pitch" }
-
Returns { display: "WP"; result: "WP"; type: "wild-pitch" }
-
display: "WP"
-
result: "WP"
-
type: "wild-pitch"