nolliv22 / OChessML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OChessML

Logo

For archive purpose only, the project is no longer maintained


Presentation

Chess game coded with OCaml for a course project.


Play

Game

Windows

Download the executable OChessML.exe.

Launch the executable to start the game.

Linux

Download the executable OChessML.

Launch the executable to start the game.


File structure

.
├── 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

Build

Linux

# Install OPAM
sudo apt install opam

Windows

Install OCaml and OPAM with Cygwin

Install required packages

# Initialize OPAM and install packages
opam init
opam install graphics ocamlfind
eval $(opam env)

Build executable

Linux

ocamlfind ocamlopt -package graphics -linkpkg OChess.ml -o OChessML

Windows

ocamlfind ocamlopt -package graphics -linkpkg OChess.ml -o OChessML.exe

About


Languages

Language:OCaml 99.7%Language:Python 0.3%