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

14
test/testPitch.ts Normal file
View File

@@ -0,0 +1,14 @@
import pitchGenerator from "../systems/pitchGenerator";
import { randomPlayer } from "./generateFixtures";
const pitcher = randomPlayer();
console.log(`Pitcher: ${pitcher.firstname} ${pitcher.lastname}`);
console.log(` armStrength: ${pitcher.skillset.pitching.armStrength.toFixed(2)}`);
console.log(` gripStrength: ${pitcher.skillset.pitching.gripStrength.toFixed(2)}`);
console.log(` fourSeam: ${pitcher.skillset.pitching.fourSeam.toFixed(2)}`);
console.log("---");
const pitch = pitchGenerator(pitcher);
console.log("ThrownPitch:", pitch);