Optimizing an MP3 Codec with OCaml/OxCaml
Mark Elvers
~1 min read

Categories

  • ocaml,js_of_ocaml

Tags

  • tunbury.org

Numberphile’s latest video has been released, and in it Ben Sparks introduces the 15 Game.

Two players take turns choosing tiles numbered 1–9 from a shared pool. The first player to collect exactly three tiles that sum to 15 wins. If all tiles are taken with no winner, the game is a draw.

This looks like a great project for a js_of_ocaml solution.

As the game maps directly onto tic-tac-toe, creating an AI player was straightforward. You can play my version from GitHub Pages fifteen.

Numberphile’s videos are sponsored by Jane Street.