A package that figures out where the ball should be thrown in baseball
npm install @therealkingnull/baseball-logic
!issues
!forks
!stars
!license
A package that figures out where the ball should be thrown in baseball.
```
$ npm install @therealkingnull/baseball-logic
`js
const baseball = require("@therealkingnull/baseball-logic");
var play = baseball.outfield("LF", "1", "1&3", "GB");
`
js
"throw 2 via SS"
`
This means that you would throw the ball to your cutoff (which would be shortstop in this case), and they would then throw it to the initial base (2, or second base)---
Trivia
The trivia part of the package gives you fun questions and facts about a certain position.
$3
`js
const baseball = require("@therealkingnull/baseball-logic");var trivia = baseball.trivia("LF", "1");
`
This example would return data that looks like the following:
`js
[
{
id: '1',
question: 'Is left field good',
answer: 'Very good',
level: '1',
position: 'lf'
}
]
``