Skip to content

A game based on the 4 colour theorem, using Ocaml.

Notifications You must be signed in to change notification settings

San-Holo/Voronoi-game

Repository files navigation

How to compile ?

There's two ways of compiling the project into one executable/

  1. Directly write "ocamlbuild -pkg graphics jeu.native" in a terminal.

  2. A given makefile allows it by writing "make" in a terminal.

An attempt of building a makefile which would have created an executable without ocamlbuild was made. However, a targetting error from the last rule appeared when the last rule was executed. To check this behaviour: "make other" in a terminal.

How to clean working directory ?

To delete .cmo and .cmi files => "make clean" in a terminal.

To delete all executables => "make mrproper" in the terminal.

How to use the produced executable ?

Once compilation's done, the ".native" file can be executed => "./jeu.native" You will then be able to choose a distance (as shown in the image below) and start to play !

Selection

The "next" button allows to go to the next Voronoi, "reset" permits to clean the actual Voronoi and "quit" pushes you in another dimension called "reality" (WOW). You can see below what the game looks like:

Vous pouvez ci dessous voir la fenêtre de jeu complète : Game

How to add new Voronois ?

You can add them either directly in "examples.ml", or in the list at the end of the former.

About

A game based on the 4 colour theorem, using Ocaml.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published