initial commit

This commit is contained in:
George Powell
2026-03-26 12:11:43 -04:00
commit 9b779598e9
25 changed files with 665 additions and 0 deletions

View File

@@ -0,0 +1 @@
// dialogue is things the players can say

0
systems/hitGenerator.ts Normal file
View File

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,8 @@
// pitch narrator
// response narrator (include count)
// fielding narrator
// baserunning narrator
// development narrator
// mood/dialogue narrator
// ambient narrator

24
systems/pitchGenerator.ts Normal file
View File

@@ -0,0 +1,24 @@
// pitchGenerator
import type { Player } from "../types/Player";
import type { ThrownPitch } from "../types/ThrownPitch";
// a pitch can
// be thrown overhand, underhand, with spin that keeps it afloat or makes it a breaking ball,
// or be thrown with no spin (difficult) for a knuckleball.
// it can hit a batter, hit the dirt, or go wild.
export default function pitchGenerator(pitcher: Player) {
// what is the pitcher trying to throw?
// what is the count? how good is the batter? what *can* he throw?
const pitch: ThrownPitch = {
name: 'pitch',
speed: 0,
spinType: "6-12",
rpm: 200,
accuracy: 0.5
}
return pitch;
}