Fix typos in xkcd-Name-Dominoes notebook

This commit is contained in:
Peter Norvig authored and GitHub committed 2026-09-11 07:42:01 -07:00
1 parent 6b2e3a0eba
commit 85e666b23f
1 file changed
+2 -2
+2 -2
View File
@@ -244,9 +244,9 @@
"\n",
"I'll define `plot_board(board)` to plot each name in each tile and draw rectangles around them. I'll take care to make the font size appropriate for the length of each name, and I'll rotate the names according to the direction the tile is going in. The `fantasy` font is something like standard cartoon lettering.\n",
"\n",
"The `(x, y)` coordinates are taken to be the **center** of a square; names are centered on `(x, y)`. But the box is drawn a half-unit to each side of the center. Actually, we want it to be a biot less than a half-unit, becuase we want the outlines of the tiles to not-quite touch. In `plot_rectangle_around` we use 0.47 instead of 0.5 for this reason.\n",
"The `(x, y)` coordinates are taken to be the **center** of a square; names are centered on `(x, y)`. But the box is drawn a half-unit to each side of the center. Actually, we want it to be a bit less than a half-unit, becuase we want the outlines of the tiles to not-quite touch. In `plot_rectangle_around` we use 0.47 instead of 0.5 for this reason.\n",
"\n",
"One more trick: Randall has `\"Billy D. WIlliams\"` as a two-square name, not three, so I will write it as `\"Billy_D. Williams\"`, split that into two names, and only convert the `\"_\"` to a `\" \"` when plotting the text.\n"
"One more trick: Randall has `\"Billy D. Williams\"` as a two-square name, not three, so I will write it as `\"Billy_D. Williams\"`, split that into two names, and only convert the `\"_\"` to a `\" \"` when plotting the text.\n"
]
},
{