Page
Library
Module
Module type
Parameter
Class
Class type
Source
The game has several levels to complete. The goal is simple: find the snake shed skin, eat the exact amount of fruit to reach the size of that skin, and cover it precisely.
(v0.1)
https://youtu.be/h1MC9-xDKFA
(v0.1)
If you're lucky, you may just download one of the precompiled binaries of the latest release, or one of the latest automatic builds (ubuntu and macos). You will need to have the SDL2 library installed on your system.
It's also easy to build Snóke from source, and it will take care of all dependencies. This requires ocaml
, and the opam
package manager.
Just do:
opam pin add https://github.com/sanette/snoke.git
opam install snoke
Or, download or clone this repo, cd
into the snoke
dir, and
opam install .
Then you should be able to launch the game with
snoke
Alternatively, instead of the install step, you can directly run the game with
cd src
dune exec ./snoke.exe
First of all, it's written is ocaml
which makes it fun to code! While ocaml
is not particularly known for games, I came across this nice blog article by Florent Monnier and realized it would make a good challenge for testing the GUI library Bogue.
You can read here how it all started.