Single-player gomoku game in Ocaml
Gomoku is a small single-player (human vs computer) game written in OCaml language. Human player uses white stones and begins each game, whereas computer player uses black stones. Winner is the first player who puts 5 stones of their colour in an unbroken chain either horizontally, vertically or diagonally.
LET'S PLAY GOMOKU!
versions last used by the author are in double parentheses and italic
- Linux-based operating system
((Debian testing)) - OCaml
((OPAM packageocaml
, 4.14.+)) - Dune
((OPAM packagedune
, 3.10.+)) - GNU Make
((APT packagemake
, 4.3.+)) - Graphics
((OPAM packagegraphics
, 5.1.+))
- OUnit2
((OPAM packageounit2
, 2.2.+))
- Ocamlformat
((OPAM packageocamlformat
, 0.26.+)) - Ocp-indent
((OPAM packageocp-indent
, 1.8.+))
Gomoku can be built using Dune with help of GNU Make.
Possible Make targets are:
make
,make all
- format source files & compile source files & link executable & run unit testsmake build
- format source files & compile source files & link executablemake compile
- compile source files & link executablemake test
- run unit testsmake format
- format source filesmake clean
- remove additional build filesmake refresh
- remove additional build files & compile source files & link executablemake refresh-all
- remove additional build files & compile source files & link executable & run unit tests
Gomoku can be run directly using the executable file in the buildOut/bin
directory:
$ /path-to-project-directory/buildOut/bin/gomoku