For archive purpose only, the project is no longer maintained
Chess game coded with OCaml for a course project.
Download the executable OChessML.exe.
Launch the executable to start the game.
Download the executable OChessML.
Launch the executable to start the game.
.
├── build # Executables
├── src
│ ├── assets
| | └── ...
│ ├── pieces
| | └── ...
│ ├── action.ml # Handle actions
│ ├── logo.ml # Display logo
│ ├── menu.ml # UI
│ ├── ochess.ml # Main file
└── OChess.ml # One file that contain all the code for building purpose
# Install OPAM
sudo apt install opam
Install OCaml and OPAM with Cygwin
# Initialize OPAM and install packages
opam init
opam install graphics ocamlfind
eval $(opam env)
Linux
ocamlfind ocamlopt -package graphics -linkpkg OChess.ml -o OChessML
Windows
ocamlfind ocamlopt -package graphics -linkpkg OChess.ml -o OChessML.exe