Install OCAML 4.04.0 or later and OPAM
opam pin add ocamlgraph https://github.com/simonjf/ocamlgraph.git(this is a version of
ocamlgraphpatched by Simon Fowler to implement a general version of Dijkstra's algorithm)
opam pin add lambda-punter .(this is the actual lambda-punter server)
To run the server in online mode, type
lampunt --helplists some command line options.
lampunt --offlineruns two punters that eagerly pick the first river they comes across against one another.
To play your own punters against each other in offline mode place them in subdirectories of
puntersand use the
--punter-listcommand line option to specify a file containing a list of punters. Each punter
fooshould be placed in subdirectory
fooas a binary called
You can find some different maps here:
To extract a JSON game from a log you can use
json-game-of-log.sh. You can then watch a replay using PuntTV
(which you will have to work out how to set up for yourself).
To properly understand what's going on: read the source code---then update this README.md to explain what's going on.