Working notes: 2026-11-20: the games compiled, Hazel plays for you, Pinball and Mahjong solitaire, and Dress Up goes to space
Claude, written on 11-22 from the day's records (the dashboard's tickets and their logs, the commits, the sessions' transcripts and the crash log), as the work-notes gallery had stopped at 11-19. Picks up from the 11-19 note.
In short
- Mahjong, the third Hazel AI opponent: Hong Kong rules, you against three Hazel players (
^ticket(786), hazeljs-examples 0.0.32). - The games run their rules compiled by hazel-jit, as the oracles do (
^ticket(794), 0.0.34), and 🤖 Hazel plays for you on Go, Checkers, Mahjong and Minesweeper (^ticket(796), 0.0.34 and 0.0.35). ^report(60), How Fast Is Hazel? Five Games, Three Ways: hazel-jit about 3,300 times hazeljs, plain JavaScript about 13 times hazel-jit (^ticket(797)).- Pinball: ten tables as Hazel data, every frame's physics a Hazel program compiled by hazel-jit, with music of its own (
^ticket(793), 0.0.36); then chambers, more flippers, bumpers on tracks, mezzanines with wire ramps and lifts (^ticket(805),^ticket(806), 0.0.37 to 0.0.40). - Mahjong solitaire, its rules in Hazel (
^ticket(803), 0.0.39). - Dress Up went to space: a space world (
^ticket(798)), a rocket (^ticket(799)), a black hole to a cat universe (^ticket(800)), flying up into outer space (^ticket(801)), and Pinball's tunes as a 🎱 music kind (^ticket(804)); 0.0.511 to 0.0.520. - Two crashes, at 12:39 and 15:10, both on light load, nothing lost (the crash log).
Matthew, today
good morning. Can we check on hazel dev and see what merged last night?
next, let's try to do a pinball game using hazeljs to describe: * layout of the game * state of the game * state updates to the game, based on physics and flapper states, etc
let's plan to use hazel-jit with hazeljs to make the pinball game fast.
For each one-player game with AI opponents, please add a mode as a toggle switch where the AI for that game plays for the interactive user "you", so that the game becomes a 0 player activity to watch and to time.
N wants there to be a space background with a black hole. entering this black hole is safe, but leads to a parallel space universe (another world) where: * every human is a cat * all aliens are alien cats of some kind
let's have music and sound effects for pin ball. fast-paced, mega-man themed style, but original MIDI constructions.
after pin ball works, Let's do a mahjong that resembles the classic ones from 1990s windows
these pin ball boards are too hard --- it's too easy to have the ball go into the gutter
let's have robot mode for pinball, with near-perfect ball retention
sounds good, please continue while I am AFK, starting now.
What was done
^ticket(786), Mahjong. Released as 0.0.32: the claims, the winning hands, the faan and the points are Hazel, and so is what each of the three Hazel players discards and claims; on matthewhammer.org/hazel/ and in the nav.^ticket(794), the games compiled. 0.0.34: Solitaire, Minesweeper, Go, Checkers and Mahjong run their rules as JavaScript compiled by hazel-jit, from CI on hazelgrove/hazeltrial/794-games-aot(tools/make-compiled.py wraps each).^ticket(796), Hazel plays for you. 0.0.34 and 0.0.35: a switch hands your side to Hazel's own AI, at a pace (slowly, at a walk, briskly, at full speed), with a clock; Go's randomness slider.^ticket(797),^report(60). Each game in plain JavaScript too, and the three ways timed: hazel-jit about 3,300 times hazeljs's interpreter, plain JavaScript about 13 times hazel-jit, and what hazel-jit's code pays over it.^ticket(793), Pinball. 0.0.36: ten tables as Hazel data; the physics in Hazel, compiled (0.023 ms a step, 72.5 ms interpreted); three tunes of our own on a little chip; full screen laid out for a phone or a tablet; the paddles on the arrow keys.^ticket(805)and^ticket(806), Pinball rounds two and four. 0.0.37 to 0.0.40: chambers with their own flippers, structures up top, a different bottom on each board, portals that hold the ball, a ball save, launch strengths, patterns and light arrays; bumpers riding tracks; glass mezzanines on five boards with wire ramps, lifts and holes.^ticket(803), Mahjong solitaire. 0.0.39: 144 tiles in layers (turtle, pyramid, fortress), the rules one Hazel module compiled by hazel-jit, a deal that can always be won, and Hazel's own play.^ticket(798)to^ticket(801),^ticket(804), Dress Up in space. 0.0.511 to 0.0.520: the starfield, the starship's bridge, alien planets and a space station; a rocket the horse's size; a black hole, safe to fall into, to a cat universe and back; flying up into outer space; 🎱 pin ball music.- The crash log's two for the day: 12:39 (near idle, during a snap refresh) and 15:10 (Hazel's interpreter under node, light load); the crash log.
Where things are
| What | Where | State |
|---|---|---|
| hazeljs-examples | matthewhammer/hazeljs-examples, main | 0.0.40, live |
| the games' compiles | hazelgrove/hazel trial/794-games-aot | CI's Fast checks uploads hazel-jit-aot |
^ticket(795), hazeljs as one big package | hazelgrove/hazeljs | open |
| Dress Up | kids-choice-games, main | 0.0.520, live |
Next
- The hazeljs package with the tile editor in it (
^ticket(795)). - Pinball's robot, and the boards' polish.
- Dress Up's team and its space course.