Tarot, dealt in Hazel
Hazel activities › ancient oracles · source on GitHub · hazeljs on npmAsk a question, choose a spread, and deal: the cards land face down, each in its place. Turn them over one at a time. The deck, the shuffle and the spreads are a Hazel program, shown beside the table as text, or in Hazel's own editor at the press of a button; the page passes it random numbers and lays out what it deals. While the program has an error or a hole, the page's own JavaScript deals instead, and the table says which did.
A new reading
Deal to lay out a spread.
The woodcut faces are Woodcut tarot (CC0), traced from the Jean Noblet tarot (Paris, c. 1650), the oldest Tarot de Marseille that survives, with the Six to Ten of Wands from the Jacques Viéville tarot, from the Bibliothèque nationale de France's scans. A Marseille deck numbers Justice VIII and Strength XI, the other way from Waite's order, which this deck's names follow. In color, each card's stencils are traced in the deck's own palette (vermilion, ochre and a steel-grey wash) and printed beneath its lines, as the press did; the small red ovals are the library's ownership stamps.
This app needs JavaScript, and a page served over http (python3 -m http.server, then localhost).
The vocabulary every module sees (tarot/rules/preamble.hz). The listings are text, highlighted, until Edit in Hazel opens each in Hazel's own editor (about 7 MB each), where Ctrl+click on a name, or F12, goes to its definition; Show as text goes back, your edits kept.
loading preamble.hz…
loading Deck.hz…
loading Spreads.hz…
(deal = Reading.deal).loading Reading.hz…
hazeljs-examples · versions · Apache 2.0 (code), CC BY 4.0 (words) · by Matthew Hammer · an example for hazeljs