Shared from Yui | Playground
Flow: a topic to a quiz
One screen from Yui, drawn from 53 lines of Yui Lines.
Drawing the screen...
The lines the agent sends:
flow@study "A topic to a quiz" submit="Save my cards"
flowchart TD
%% hi: page "Five minutes, then a quiz" body="Pick a topic. I teach it one idea a page, with a picture each, then ask you one question. What you learn becomes cards you review later." points="Pick a topic|A short lesson|One question|A calculator to play with"
hi([Start]) --> topic
%% topic: choose "What do you want to learn?" "How vaccines work"|"How a ball flies"|"How money grows"
topic[Topic] --> know
%% know: choose "How much do you know already?" "Brand new"|"A little"|"I know the basics" body="Know the basics? I skip the first page."
know[What you know] --> lesson{Which lesson?}
lesson -->|topic=How vaccines work and know=I know the basics| v2
lesson -->|topic=How vaccines work| v1
lesson -->|topic=How a ball flies and know=I know the basics| b2
lesson -->|topic=How a ball flies| b1
lesson -->|know=I know the basics| m2
lesson --> m1
%% v1: page "Instructions in a bubble" /demo/mrna1.jpg body="An mRNA vaccine is a recipe for one protein, wrapped in a tiny bubble of fat. The shot goes into your arm and the bubble slips into nearby cells."
v1[Vaccines 1] --> v2
%% v2: page "Your cells read the recipe" /demo/mrna3.jpg body="Ribosomes out in the cytoplasm read the mRNA and build the spike protein, the same shape that sits on the virus. It never goes near your DNA."
v2[Vaccines 2] --> v3
%% v3: page "Your body learns, the recipe fades" /demo/mrna4.jpg body="Your immune system sees the spike and makes antibodies that fit it. The mRNA breaks down in days. The memory cells stay." points="Antibodies fit the spike|mRNA gone in days|Memory cells stay"
v3[Vaccines 3] --> vq
%% vq: choose "Where is the mRNA read?" Nucleus|Cytoplasm|"The blood"
vq{Quiz}
vq -->|vq!=Cytoplasm| vwhy
vq --> again
%% vwhy: page "In the cytoplasm" /demo/mrna3.jpg body="Ribosomes in the cytoplasm, the jelly around the nucleus, read it like a recipe. It never reaches the nucleus, where your DNA is kept."
vwhy[Why] --> again
%% b1: page "A throw is two motions" /demo/study-ball1.jpg body="Forward at a steady speed, and up then down. Put the two together and you get the arc." points="Forward: steady|Up and down: gravity|Together: an arc"
b1[Ball 1] --> b2
%% b2: page "Gravity only pulls down" /demo/study-ball2.jpg body="Leave the air out and nothing slows the forward part. Gravity takes 9.8 m/s off the climb every second, then pulls it back down."
b2[Ball 2] --> b3
%% b3: page "Speed and angle set the distance" /demo/study-ball3.jpg body="Throw twice as fast and it goes four times as far. Too steep and it spends its speed climbing; too flat and it lands early."
b3[Ball 3] --> bq
%% bq: choose "Which angle throws farthest?" "30 degrees"|"45 degrees"|"60 degrees"
bq{Quiz}
bq -->|bq!=45 degrees| bwhy
bq --> again
%% bwhy: page "45 degrees goes farthest" /demo/study-ball3.jpg body="Halfway between flat and straight up splits the speed evenly between climbing and going forward. 30 and 60 land on the same spot, short of it."
bwhy[Why] --> again
%% m1: page "Interest is rent on money" /demo/study-money1.jpg body="Put $100 in at 5% a year and the bank pays you $5 for using it. That $5 is the interest."
m1[Money 1] --> m2
%% m2: page "Interest earns interest" /demo/study-money2.jpg body="Leave the $5 in. Next year you earn 5% of $105, not $100. Each year the new coins are a little bigger. That is compounding."
m2[Money 2] --> m3
%% m3: page "Time does the heavy lifting" /demo/study-money3.jpg body="At 7% a year money doubles about every 10 years. The rule of 72: divide 72 by the rate to get the years to double." points="7%: double in 10 years|Twice more: x4 in 20|40 years: x16"
m3[Money 3] --> mq
%% mq: choose "$100 at 10% a year, compounded. After 2 years?" "$110"|"$120"|"$121"
mq{Quiz}
mq -->|mq!=$121| mwhy
mq --> again
%% mwhy: page "$121" /demo/study-money2.jpg body="Year one pays 10% of $100, $10. Year two pays 10% of $110, $11. The extra dollar is interest on interest."
mwhy[Why] --> again
%% again: choose "When should I quiz you again?" Tomorrow|"In 3 days"|"Next week" body="Three cards from this lesson go in your review for then."
again[Again] --> saved((Cards))
end







