Source

2048-ml /

Filename Size Date modified Message
gentoo
src
205 B
226 B
138 B
1.4 KB
1.1 KB
1.3 KB

2048 in OCaml

Introduction

A clone of 2048, implemented in OCaml.

Features

  • Cross-platform GUI with no external dependency, using graphics library that comes with OCaml

  • Text (ascii) output as well

  • Gameplay actions implemented as monadic functions, for example, to place two new tiles:

    playing board >>= spawn >>= spawn
    

Requirements

To compile

Installation

Gentoo

There are ebuilds come with 2048-ml for each tagged release.

They can also be found (along with Manifest) in my personal overlay:

Mercurial:
https://bitbucket.org/pyx/overlay
Git:
https://github.com/pyx/overlay.git

With properly added ebuild:

emerge --ask 2048-ml

From Source

Compile

make

Install

make install

License

BSD New, see LICENSE for details.