Skip to content

Memory game made in OCaml and Bogue

License

Notifications You must be signed in to change notification settings

ceribe/memory-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Game

How to run

Instructions below are for Arch Linux, but it should work on most distributions.

1. Install Opam (OCaml Package Manager)

Installing Opam will also install OCaml as a dependency so there is no need to install it separately.

sudo pacman -S opam #Or equivalent command for your distribution

During instalation you may be asked if you want to edit ~/.bash_profile. Select "yes". If you are not asked or you chose "no" then every time before running "make" with a new terminal you will need to run the eval command listed below.

2. Install Dune (OCaml Build System)

To compile you will need "ocamlfind" command which is in "ocaml-findlib" package. Dune depends on that package. If you do not want to install dune then installing "ocaml-findlib" should be enough, but I recommend installing dune as it will create less possible problems.

sudo pacman -S dune

3. Install Bogue

sudo pacman -S pkg-config
opam install bogue

During installation you will be asked to install additional packages. Install them. Afterwards restart terminal and run:

eval $(opam config env)

4. Compile

make

5. Run

./memory