Follow the following instructions to download and configure ocaml (est. time 5 mins)
Then clone this repository by running
git clone [email protected]:drew-pi/chess2.git
Navigate into the repository
cd chess2
Download all of the required dependencies
opam install integers ounit2
Finally, compile and run the game
dune build && dune exec bin/main.exe
The onscreen instructions will guide you through the rest :)
To run the test suite with bisect (a code coverage monitoring tool) use
find . -name '*.coverage' | xargs rm -f
dune runtest --instrument-with bisect_ppx --force
Then to generate the coverage report run in _coverage/index.html
run
bisect-ppx-report html
You can also generate a short summary by using
bisect-ppx-report summary
To run the test suite without bisect use
dune runtest