initial commit
This commit is contained in:
14
test/testPitch.ts
Normal file
14
test/testPitch.ts
Normal 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);
|
||||
Reference in New Issue
Block a user