This mechanical card game is crafted for larger screens — its intricate automata require the space of a proper workshop.
Please visit on a laptop or desktop computer to experience al-Jazarī's ingenious devices.

The Book of Ingenious Devices
Select Difficulty
0
Badīʿ al-Zamān Abū al-ʿIzz ibn Ismāʿīl al-Jazarī (1136–1206 CE) was a polymath, inventor, mechanical engineer, craftsman, and artist who served as chief engineer at the Artuqid palace in Diyarbakır, in what is now southeastern Turkey. In 1206, he completed his masterwork: The Book of Knowledge of Ingenious Mechanical Devices (كتاب في معرفة الحيل الهندسية), documenting 50 mechanical devices he had designed and built over 25 years of service to three successive sultans.
His inventions — including the first known programmable automaton (the Castle Clock), the camshaft, the crankshaft, and the segmental gear — were centuries ahead of their time. Many are considered foundational to modern mechanical engineering. Al-Jazarī's work bridges the ancient world and the Renaissance, representing the pinnacle of Islamic Golden Age engineering.
Kitāb al-Ḥiyāl (كتاب الحيل) brings these 50 devices to life as a solitaire card game. Each card represents one of al-Jazarī's actual machines, organized into the same six categories as the original treatise. The game's chain reaction mechanic — where one device triggers the next — mirrors the interconnected gears and water flows of al-Jazarī's automata.
You are al-Jazarī himself. The Sultan has commissioned you to document and build all 50 mechanical devices before your resources run dry. Water flows, gears turn, time presses.
Each Device has a Layer (1–5), shown as dots on the card. Layer 1 devices can be placed for free. Layer 2+ devices must be "fed" — you must also play a matching Force card alongside them. The Force card shown on each device tells you what type is required.
Placement rule: A device can be placed on a Path if the Path is empty, or the device's layer is at most 1 higher than the top card. Force cards used to feed a device are consumed and sent to the Well.
Force cards stored in the Channel can be spent to feed devices. When a Force is used — whether from the Channel or your hand — it is removed and sent to the Well. Ingenuity cards in the Channel serve as wild forces (substituting for any type) but are also consumed and sent to the Well when used.
Spending priority: The game always uses wildcards first — metamorphed forces, then Ingenuity cards, then exact force matches. This preserves your specific forces for when you truly need them. The Channel also provides conditions for chain reaction triggers (e.g., "≥1 Water in Channel").
Once per turn, instead of drawing from the Tigris, you may take the top card of the Well. This replaces the entire draw phase for that turn. Penalty: the top card of the Tigris is immediately sent to the Well. Use wisely!
About 20 devices have Triggers (shown with
). When you place such a device and its condition is met (e.g., "≥1
Water in Channel"), a chain reaction fires automatically — placing another device, drawing cards, or removing cards from the Well. If that device also has a trigger, the chain continues! Maximum 3 chain activations per turn.
Every device has a Power
that activates when placed: Layer 1 powers are simple (draw extra, peek), Layer 3 powers are strong (retrieve from Well), and Layer 5 Masterpieces have legendary effects like emptying the Well entirely or drawing 4 cards per turn forever.
Victory conditions depend on difficulty:
Even partial completion earns titles:
Completing Masterpieces and long chains add bonus points. Expected full victory rate: ~8–12% for experienced players.
You lose if the Well exceeds its limit (Easy: 30, Medium: 28, Hard: 25), or if the Tigris is empty with no legal moves remaining.
Click a card to take it into your hand.