Skip to content

ldmnt/ffg-ladder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A tool to simulate the rank variation of a player in the french ladder after a go tournament. Enter your initial rank, your opponents and the results, and you get a report with the variation after each match. There are two interfaces: a CLI and a simple android application.

This started out as an Ocaml exercise, then I wanted to make it usable through a minimalistic android application. This was achieved by compiling the Ocaml bytecode into javascript stubs with js_of_ocaml and binding them to the java code of the mobile app.

Building the project

You need an Ocaml compiler and a couple libraries that can be installed via opam. First install the base standard library and dune to be able to build the OCaml code:

opam install base dune

Command line interface (unix)

For the command line executable, the following ocaml libraries are used:

opam install lwt cohttp cohttp-lwt-unix uutf stdio

Then build the executable:

make cli

It can be found at ocaml/_build/default/bin/ffg_ladder.exe.

Android interface

To build the mobile app, you need the android SDK and gradle. Once you have a working installation, install js_of_ocaml which is needed to generate the OCaml to javascript binding:

opam install js_of_ocaml js_of_ocaml-ppx

Then you can obtain a debug APK by running:

make android

The APK is created at android/app/build/outputs/apk/debug/app-debug.apk

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published