Skip to content

Al-Jazari

Rebuild al-Jazari's machines with real physicsA mechanical puzzle game about three machines from al-Jazari's book of 1206: the whistling boat, the tipping bucket with the wine servant, and the Elephant Clock. You set a hole, an axle or a weight, then watch the water do what the calculation says.
Play in the browserMade for a phone held upright; works on a computer too.
Download the app (APK)Version 0.2.0 · 3.9 MB · Android 7 or newer. Works offline. This build has not yet been tried on a real phone; the browser version is the tested one.
  • Web game
  • Free game
  • Arabic and English
  • Works offline after the first visit
  • No sign-up, no ads, no tracking

What it does

Three machines, thirteen levels

Make a boat sink exactly on the hour, make a bucket tip at one hundred dirhams, balance a serpent so the Elephant Clock resets itself; then take a commission for each machine and design it yourself.

Physics you can check

The simulation is tested against hand calculations (39 automated checks) and gives the same result on every run.

Honest about history

Each machine has a library page that says what comes from al-Jazari's text and what is our own reconstruction. The drawings are new, in the spirit of the manuscripts, not copies.

How it was built

A deterministic fixed-step simulation of lumped hydraulics (orifice flow, floating bodies, a tipping vessel, a balance) with procedural manuscript-style drawing on WebGL and a DOM interface.

  • TypeScript
  • PixiJS
  • Vite
  • PWA

Fonts: Amiri and Noto Naskh Arabic (SIL Open Font License). All drawings and sounds are generated by the game's own code.