This project is an implementation of the popular 2048 game, written in OCaml and utilizing the Cornell CS 3110 class OPAM libraries. The game features a graphical user interface powered by Raylib and is built using the Dune project manager.
- Install the base libraries required for the project:
opam install -y utop odoc ounit2 qcheck bisect_ppx menhir ocaml-lsp-server ocamlformat ocamlformat-rpc
- Install the Raylib library for the graphical user interface:
opam depext raylib
opam install raylib 3
Run the following command to build the game:
make build
To start the game, use:
make game
- Running Tests: To run tests, execute
make test
. - Interactive Console: For an interactive console, use
make utop
. - Cleaning Build Files: To clean up build files, run
make clean
. - Documentation: Generate documentation using
make doc
and open it withmake opendoc
. - Zipping Project: To zip the project, use
make zip
. - Code Count: To count the lines of code, execute
make count
.
- Contributors: Dora Weng (cw749), Vicky Wang (vw92), Linda Sun (lhs86), Sean Zhang (swz9)
- Special thanks to the Cornell CS 3110 course team.