Light trails, against Hazel
Hazel activities › Hazel AI opponents · source on GitHub · hazeljs on npmYou ride the blue light, Hazel the orange one; each leaves a wall of light behind it. Turn with the arrow keys (or W A S D), a swipe, or the four buttons: the first to run into the edge or a trail loses the round, and both at once is a draw. First to three rounds wins. Each step of a round, and Hazel's rider (and yours, when 🤖 Hazel plays for you), are Hazel (trails/rules/Trails.hz). ⏸ or the space bar pauses.
This app needs JavaScript, and a page served over http (python3 -m http.server, then localhost).
The vocabulary the module sees (trails/rules/preamble.hz). The listings are text, highlighted, until Edit in Hazel opens each in Hazel's own editor; an edit changes the next step.
loading preamble.hz…
loading Trails.hz…
hazeljs-examples · versions · Apache 2.0 (code), CC BY 4.0 (words, the icon) · by Matthew Hammer · an example for hazeljs