Files
softball/types/ThrownPitch.ts
George Powell 9b779598e9 initial commit
2026-03-26 12:11:43 -04:00

9 lines
360 B
TypeScript

export type ThrownPitch = {
readonly name: string;
readonly speed: number; // in mph
readonly spinType: "6-12" | "4-10" | "3-9" | "12-6" | "9-3" | "none";
readonly rpm: number; // example: 6-12 with fast rpm is fastball, 6-12 with slow rpm is changeup
readonly accuracy: number; // how likely that a ball will end up where the pitcher meant for it to.
}