Skip to content

livediagonal/project-scoresheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Scoresheet

Open-source Haskell library for modeling baseball and working with Retrosheet event data.

Getting started

stack build
stack exec -- boxscore -y 2016 -t bos
stack exec -- event -y 2016 -t bos

Pulling in Retrosheet data

Chadwick Bureau maintains a git repository containing the Retrosheet data files. This repository is setup as a submodule.

Run git submodule init to initialize the submodule, and git submodule update to populate or update the data.

Loading batting stats into Postgres

This assumes Postgres is already set up with user postgres for a local database baseball:

PGUSER=postgres PGPASSWORD=password PGHOST=localhost PGDATABASE=baseball ./scripts/create-batting-stats-table.sh testgames.txt blah

Running the tests

stack test

Further Reading

Releases

No releases published

Packages

No packages published