- Ocaml 4.12.x
These instructions assume that you have OCaml and opam installed as per the Install OCaml module in the CS 3110 Canvas.
-
Run the following command to install pkg-config.
Mac (Pick One):
brew install pkg-config
sudo port install pkgconfig
-
You will need to install a couple packages in order to play the game. Run the following command:
opam install oUnit ASNITerminal sdl2
-
You will need an XServer to display the graphics. Please make sure that the XServer is open before completing step 5.
Windows: XMing [XMing] https://sourceforge.net/projects/xming/
Mac: XQuartz [XQuartz] https://www.xquartz.org/
-
Run
make build
in the root directory and this will build the the necessary modules needed to run this code. -
Run
make play
to start playing!
make build
builds the modules needed to run the projectmake test
evaluates the test cases in test.mlmake play
initializes and plays the game