This is the OCaml implementation of the seawar game using the Melange as the protocol base.
Basically it is the proof of concept demonstrating how statically typed DSL for structures and network protocols can simplify the development and debugging.
- Melange library, especially
splc
andmplc
tools from it, as well asmpl_stdlib
. - lablqml Qt 5.2 bindings to OCaml (can be installed from OPAM)
- Fix the Makefile specifying proper paths to melange and your qt 5.2 installation (if it is installed not in system paths).
make
To start seawar server, run it as ./seawar --server
.
For client instance run ./seawar --host 111.222.333.444
(you can omit --host
if it's localhost).
You can add --ai
option for either server or client to play with AI.