Skip to content

Instantly share code, notes, and snippets.

@bkmorse
Created February 13, 2015 18:53
Show Gist options
  • Save bkmorse/31f5652be349bacad9dc to your computer and use it in GitHub Desktop.
Save bkmorse/31f5652be349bacad9dc to your computer and use it in GitHub Desktop.
require_once __DIR__ . '/vendor/autoload.php';
use \bkmorse\sportstats\Factory as Factory;
$baseball = Factory::create('\bkmorse\sportstats\Baseball');
print $baseball->battingAverage(50, 100);
print $baseball->slg(10, 12);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment