<?xml version="1.0" encoding="utf-8" standalone="yes"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:glthr="https://glthr.com/ns/rss"><channel><title>Machine-Learning | GLTHR.com, by Guillaume Lethuillier</title><link>https://glthr.com/tag/machine-learning</link><description>Articles in Machine-Learning on glthr.com.</description><language>en</language><lastBuildDate>Sun, 22 Nov 2026 18:00:00 +0000</lastBuildDate><atom:link href="https://glthr.com/tag/machine-learning/" rel="self" type="application/rss+xml"/><item><title>Inside Myst V’s 2005 Neural Network</title><link>https://glthr.com/end-of-ages-slate-neural-network</link><guid isPermaLink="true">https://glthr.com/end-of-ages-slate-neural-network</guid><pubDate>Sun, 22 Nov 2026 18:00:00 +0000</pubDate><dc:creator>Guillaume Lethuillier</dc:creator><description>Draw on the Bahro slate with the four neural networks Cyan shipped in 2005. A single stroke sends the slate away, and one raindrop changes what a Bahro sees.</description><content:encoded><![CDATA[<aside class="callout callout-abstract">
  <span class="callout-emoji" aria-hidden="true">↘</span>
  <div class="callout-body">
    <p>In <em>Myst V: End of Ages</em> (2005), Cyan trained four small neural networks to read the symbols on your slate, one for each Age. I drew the same N on all four slates. In three Ages it sent the slate to a pedestal. In Noloben it called for rain. You can try your own handwriting with the four readers below.</p>
  </div>
</aside><p>On the beach in <a href="https://en.wikipedia.org/wiki/Myst_V:_End_of_Ages" target="_blank" rel="noopener"><strong>Myst V: End of Ages</strong></a> (2005), I drew an umbrella on the stone slate and stepped back. One of the creatures that read the slate, a Bahro, came over, looked at my drawing and left it on the sand. I drew the umbrella again, this time with one raindrop. The Bahro raised its arms and the rain came down.</p>
<p>When the game came out, one of its makers said the slate “<em>works like any good handwriting recognition technology</em>”.<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup> Four years later a player on the Guild of Writers forum recognized the kind of network Cyan had used.<sup id="fnref:2"><a href="#fn:2" class="footnote-ref" role="doc-noteref">2</a></sup> <span class="inline-update sidenote" role="note"><em><span class="inline-update-bracket">[</span>I used the Limited Edition for Mac sold by GOG, with its September 2024 update.<span class="inline-update-bracket">]</span></em></span></p>
<p>The four networks were still there in my copy of the game. I could give each one the same drawing and compare its answer with what the Bahro did on screen.</p>
<p>The files belong to a version of Cyan’s engine that stayed closed when the source for <a href="https://en.wikipedia.org/wiki/Myst_Online:_Uru_Live" target="_blank" rel="noopener"><em>Myst Online: Uru Live</em></a> was released. I found no published account of how this version reads a drawing beyond that forum remark.</p>
<h2 id="heading-the-slate-step-by-step">The Slate, Step by Step<a class="anchor" href="#heading-the-slate-step-by-step" aria-hidden="true" tabindex="-1">#</a></h2>
<p>To see what happens with a symbol the Bahro is supposed to recognize, start in Laki’ahn.</p>
<ol>
<li><strong>Pick up the slate.</strong> The stone tablet rests on a pedestal. Lifting it opens it full-screen.</li>
<li><strong>Draw.</strong> Sketch a symbol with the mouse. In the clip below, it is the winding Snake.</li>
<li><strong>Drop it.</strong> Click the carved border, and the slate goes back to the ground.</li>
<li><strong>Wait for the verdict.</strong> Walk away from the slate, and a Bahro comes to read the drawing. It either carries out a command or walks away.</li>
</ol>
<p><a href="https://media.glthr.com/end-of-ages-slate-neural-network/eoa-slate-intro-4.mp4" target="_blank" rel="noopener"><img src="https://glthr.com/images/end-of-ages-slate-neural-network/eoa-slate-intro-4-poster.jpg" alt="Myst V in Laki’ahn, in one take. The slate is lifted from its pedestal and carried out of the bubble onto the plaza. The winding Snake is drawn on it and scores 0.995. The slate is dropped. After a walk away from it, a Bahro comes, sees the Snake, and vanishes."></a></p><p>[Video: Myst V in Laki’ahn, in one take. The slate is lifted from its pedestal and carried out of the bubble onto the plaza. The winding Snake is drawn on it and scores 0.995. The slate is dropped. After a walk away from it, a Bahro comes, sees the Snake, and vanishes.]</p>
<p><em>The Bahro comes up to the slate, sees the Snake and vanishes. The game gave my drawing a score above 0.99 for Snake.</em></p>
<p>The game also scored my Snake as Wind, Friendship and every other symbol in Laki’ahn. Each gets its own number between 0 and 1. The Bahro acts only when the winner has a clear lead.</p>
<p>Each Age has its own network, and each network knows ten or eleven symbols. For reference, here they are as the game itself shows them: carved on the pedestals of Direbo, on the walls of the Ages, or sketched in the journal.</p>
<p><a class="img-link" href="https://glthr.com/images/end-of-ages-slate-neural-network/slate-symbols.w.png" title="Open full size (2400×2292)"><img class="has-dark" src="https://glthr.com/images/end-of-ages-slate-neural-network/slate-symbols.w-1800w.png" alt="Table of the symbols that Myst V’s four networks read, taken from the game’s own pictures. One column per Age: Laki’ahn, Noloben, Todelmer and Tahgira. Rows: Pedestal 1, Pedestal 2, Pedestal 3, which only Laki’ahn and Tahgira have, Keep, Take, and the Age’s own command: Wind for Laki’ahn, Rain for Noloben, Time for Todelmer and Heat for Tahgira. A last row shows the symbols that the four Ages share: Direbo, Snake, Sing, Friendship and Torture. The Snake is a wavy line in a dashed frame, because the game’s files hold no picture of it." width="1800" height="1719" data-full="/images/end-of-ages-slate-neural-network/slate-symbols.w.png" data-full-width="2400" loading="lazy" decoding="async"></a></p>
<p><em>The symbols that each network was trained to read, from the game’s own pictures. Compare the pedestal and Keep signs across the four columns. The Snake is the only one without a picture in the files: it is shown as the wavy line drawn in the first clip.</em></p>
<h2 id="heading-how-myst-v-reads-a-drawing">How Myst V Reads a Drawing<a class="anchor" href="#heading-how-myst-v-reads-a-drawing" aria-hidden="true" tabindex="-1">#</a></h2>
<div class="tldr" role="note">
  <p class="tldr-label"><abbr title="Too long; didn’t read">TL;DR</abbr></p>
  <div class="tldr-body">
    <p>The game shrinks your drawing onto a small grid, throws out scribbles, lets a neural network score every symbol of the Age, and obeys only a clear winner.</p>
  </div>
</div><p>When you drop the slate, your sketch passes through four stages before the Bahro decides what to do:</p>
<ol>
<li><strong>Shrink onto a 16 × 16 grid.</strong> The game draws a tight box around everything you sketched, scales the longest side to 16 cells while keeping the drawing’s proportions, and pushes the result into the <strong>top-left corner</strong>. A narrow vertical stroke ends up against the left edge, and a flat one against the top edge. Each cell holds a brightness from 0 (blank stone) to 1 (ink).</li>
<li><strong>Catch scribbles first.</strong> Before the network runs, the game counts how many of the 256 cells hold any ink. At <strong>40% or more</strong>, it gives up at once and calls the drawing a <strong>Scribble</strong>, whatever the network might have answered.</li>
<li><strong>Let the network score every symbol.</strong> The 256 cells feed <strong>268 hidden detectors</strong>. Each detector weighs every cell, for or against, and reports how strongly a certain mix of curves, corners and empty space is present. The detectors then vote on the <strong>10 or 11 symbols</strong> of the Age, and each symbol gets a score between 0 and 1.</li>
<li><strong>Require a clear winner.</strong> Scoring highest is not enough. The game subtracts the score of the runner-up from the best score, and accepts the drawing only if the gap is at least <strong>0.70</strong>. Anything closer, and the Bahro shrugs: <strong>Unknown</strong>.</li>
</ol>
<p>A network of this shape, with its cells, its hidden detectors and its symbols, is a <strong>three-layer perceptron</strong>.</p>
<p><a class="img-link" href="https://glthr.com/images/end-of-ages-slate-neural-network/perceptron-layers.w.png" title="Open full size (2400×1110)"><img class="has-dark" src="https://glthr.com/images/end-of-ages-slate-neural-network/perceptron-layers.w-1800w.png" alt="Diagram of Myst V’s neural network for Laki’ahn, drawn as layers of circles joined by lines. On the left, the Snake drawn on a grid of 16 by 16 cells, pushed into the top-left corner. Each cell feeds one of 256 input neurons, each marked with the S-curve. Every input is joined to every one of 268 hidden detectors, and every detector to each of the 11 outputs of Laki’ahn: Pedestal 1, 2 and 3, Keep, Wind, Friendship, Sing, Snake, Torture, Take and Direbo. The Snake output is highlighted with a score of 0.99. Notes give 256 × 268 weights and 268 × 11 weights, and say there is no bias anywhere." width="1800" height="833" data-full="/images/end-of-ages-slate-neural-network/perceptron-layers.w.png" data-full-width="2400" loading="lazy" decoding="async"></a></p>
<p><em>The network of Laki’ahn: every cell of the drawing reaches every hidden detector, and every detector votes for every symbol. Each line is one weight. Only a few of the 256 inputs and of the 268 detectors are drawn.</em></p>
<p>You can try it below. Everything runs in your browser, from the weights that Cyan shipped and from the game’s own way of shrinking a drawing. Try a <span class="cue" data-cue="myst5-perceptron" data-cue-value="laki-vline">vertical line</span> in Laki’ahn, or load a <span class="cue" data-cue="myst5-perceptron" data-cue-value="thgr-scribble">dense scribble</span> in Tahgira to watch the 40% cutoff overrule a confident answer of the network.</p>
<div class="ix" data-ix="myst5-perceptron" id="perceptron-explorer">
<div data-ix-fallback><p><em>This figure runs in the browser: draw on the slate, and watch the grid, the S-curve, the hidden detectors and the scores of the Age change as you draw.</em></p>
</div>

</div>




<h2 id="heading-an-s-curve-at-the-entrance">An S-Curve at the Entrance<a class="anchor" href="#heading-an-s-curve-at-the-entrance" aria-hidden="true" tabindex="-1">#</a></h2>
<p>Look at the little S on each input in the diagram. It stands for a curve called a <em>sigmoid</em>, which changes the brightness of each cell before the detectors get to see it. That is an unusual place to put one.</p>
<p>A blank cell (0) enters the network as <strong>0.5</strong>, and a fully inked cell (1) as about <strong>0.73</strong>. Instead of white ink on black stone, the network only ever sees pale grey strokes on medium grey stone.</p>
<p>All four files give the first layer the same curve as the later ones. My guess is that the first layer inherited it along with the others. The files record the choice and give no reason for it.</p>
<p>The game works with it all the same, and it may even gain something. Cyan’s network has none of the constant offsets, called biases, that such networks usually carry. A background of 0.5 on every cell can play that part. You can switch the step off in the figure above, on Todelmer’s empty slate: with the <span class="cue" data-cue="myst5-perceptron" data-cue-value="tdlm-blank-off">sigmoid off</span>, Friendship rises to about 0.3; with the <span class="cue" data-cue="myst5-perceptron" data-cue-value="tdlm-blank-on">sigmoid on</span>, no symbol rises above 0.04. The comparison is not quite fair, since the weights were trained with the step in place. I repeated the comparison with freshly trained weights in <a href="#heading-the-same-design-reading-digits">the handwritten-digit experiment</a>.</p>
<h2 id="heading-what-the-weights-remember">What the Weights Remember<a class="anchor" href="#heading-what-the-weights-remember" aria-hidden="true" tabindex="-1">#</a></h2>
<p>What would the network draw if I asked it for a Snake? I started with a blank grid and changed its cells a little at a time, raising the score for Snake and lowering the others. I did the same for each symbol in each Age. Each square below is a drawing that satisfies one reader. The original sketches used to train it are a different question.</p>
<p><img src="https://glthr.com/images/end-of-ages-slate-neural-network/tron-prototypes.png" alt="Grid of 42 small grayscale pictures of 16 by 16 squares, one per symbol, recovered from Myst V’s four neural networks by running them in reverse, one row per Age. Recognizable glyphs appear cleanly across all four rows, including the circular Take symbol, Todelmer’s concentric Keep dome, Tahgira’s flame-shaped Heat glyph, the jagged Snake curve hugging the left edge, and consistent reconstructions of Friendship, Sing, and Torture across all four independently trained networks." width="1200" height="610" data-full="/images/end-of-ages-slate-neural-network/tron-prototypes.png" data-full-width="1200" loading="lazy" decoding="async"></p>
<p><em>The 42 symbols, drawn by the weights themselves (row 1: Laki’ahn, row 2: Noloben, row 3: Todelmer, row 4: Tahgira). Tall narrow glyphs such as the Snake sit against the left edge, and wide flat ones such as Laki’ahn’s Wind against the top edge: the mark of drawings pushed into the top-left corner.</em></p>
<p>The six commands that the four Ages share (Take, Snake, Sing, Friendship, Torture and Direbo) come out with the same shape, at the same place, in all four networks, although each network was trained apart.</p>
<h2 id="heading-strokes-that-fool-the-bahro">Strokes That Fool the Bahro<a class="anchor" href="#heading-strokes-that-fool-the-bahro" aria-hidden="true" tabindex="-1">#</a></h2>
<div class="tldr" role="note">
  <p class="tldr-label"><abbr title="Too long; didn’t read">TL;DR</abbr></p>
  <div class="tldr-body">
    <p>A single stroke can give a different order in each Age. Four dots are enough for Torture in Todelmer, and an umbrella with one raindrop brings the rain in Noloben.</p>
  </div>
</div><p>The game can answer “Unknown”. The network itself only scores the symbols it knows. If a doodle happens to give one symbol a big enough lead, the game accepts it. Here are four you can try.</p>
<ul>
<li>A single <span class="cue" data-cue="myst5-perceptron" data-cue-value="laki-vline">vertical line</span> in Laki’ahn is read as <strong>Pedestal 2</strong>: a narrow stroke is pushed against the left edge of the grid, where that symbol lives.</li>
<li>A <span class="cue" data-cue="myst5-perceptron" data-cue-value="laki-v">plain V</span> in Laki’ahn is read as <strong>Torture</strong>.</li>
<li>This <span class="cue" data-cue="myst5-perceptron" data-cue-value="srln-circle">plain circle</span> gives <strong>Take</strong> in Noloben and Laki’ahn, and <strong>Unknown</strong> in Tahgira. In <span class="cue" data-cue="myst5-perceptron" data-cue-value="tdlm-circle">Todelmer</span> I got <strong>Keep</strong> once and <strong>Unknown</strong> on my other tries.</li>
<li>A <span class="cue" data-cue="myst5-perceptron" data-cue-value="tdlm-square">plain square</span> means <strong>Take</strong> in Noloben and <strong>Snake</strong> in Todelmer.</li>
</ul>
<p>The shortcuts work in the game itself:</p>
<p><a href="https://media.glthr.com/end-of-ages-slate-neural-network/eoa-slate-shortcuts-4.mp4" target="_blank" rel="noopener"><img src="https://glthr.com/images/end-of-ages-slate-neural-network/eoa-slate-shortcuts-4-poster.jpg" alt="Myst V: a single vertical line drawn on Laki’ahn’s slate scores 0.960 for Pedestal 2. The slate is dropped on the plaza. After a walk away from it, a Bahro comes and takes the slate away. A cut to Pedestal 2 shows the slate resting there."></a></p><p>[Video: Myst V: a single vertical line drawn on Laki’ahn’s slate scores 0.960 for Pedestal 2. The slate is dropped on the plaza. After a walk away from it, a Bahro comes and takes the slate away. A cut to Pedestal 2 shows the slate resting there.]</p>
<p><em>In the running game: a single vertical line on Laki’ahn’s slate scored 0.96 for Pedestal 2, far ahead of the runner-up, and a Bahro took the slate away to that pedestal.</em></p>
<h3 id="heading-one-stroke-four-meanings">One Stroke, Four Meanings<a class="anchor" href="#heading-one-stroke-four-meanings" aria-hidden="true" tabindex="-1">#</a></h3>
<p>The four networks were trained apart, on the same small grid, and they do not draw the borders between symbols at the same places. One stroke can then mean a different command in each Age:</p>
<ul>
<li>A <span class="cue" data-cue="myst5-chameleon" data-cue-value="gamma">square corner</span> of two segments (Γ) means Pedestal 2 in Laki’ahn, Take in Noloben, Snake in Todelmer, and Pedestal 3 in Tahgira.</li>
<li>A <span class="cue" data-cue="myst5-chameleon" data-cue-value="letter-n">letter N</span> in one stroke sends the slate to a local pedestal in three Ages and changes the weather in the fourth: Pedestal 2 in Laki’ahn, Rain in Noloben, Pedestal 2 in Todelmer, and Pedestal 3 in Tahgira.</li>
<li>A plain <span class="cue" data-cue="myst5-chameleon" data-cue-value="fig8">figure 8</span> goes the other way: it is a <strong>Snake</strong> for all four.</li>
</ul>
<div class="ix" data-ix="myst5-chameleon" id="chameleon-lab">
<div data-ix-fallback><p><a class="img-link" href="https://glthr.com/images/end-of-ages-slate-neural-network/chameleon-strokes.png" title="Open full size (2112×1536)"><img src="https://glthr.com/images/end-of-ages-slate-neural-network/chameleon-strokes-1800w.png" alt="Three-row visual comparison of identical drawings passed through Myst V’s four unmodified 2005 neural networks. Row 1 shows a two-segment square Gamma corner activating four different commands: Pedestal 2 in Laki’ahn at 0.985, Take in Noloben at 0.959, Snake in Todelmer at 0.905, and Pedestal 3 in Tahgira at 0.860. Row 2 shows a single-stroke letter N triggering three local pedestal commands and Rain with margins of at least 0.958: Pedestal 2 in Laki’ahn, Rain in Noloben, Pedestal 2 in Todelmer, and Pedestal 3 in Tahgira. Row 3 shows a plain figure-8 universally fooling all four networks into Snake with scores from 0.965 to 0.999." width="1800" height="1309" data-full="/images/end-of-ages-slate-neural-network/chameleon-strokes.png" data-full-width="2112" loading="lazy" decoding="async"></a></p>
<p><em>The same strokes, read by the four networks: a Γ corner and an N give four different commands in Laki’ahn, Noloben, Todelmer and Tahgira, and a figure 8 is a Snake for all four.</em></p>
<p><a class="img-link" href="https://glthr.com/images/end-of-ages-slate-neural-network/minimal-cheats-and-illusions.png" title="Open full size (2112×1216)"><img src="https://glthr.com/images/end-of-ages-slate-neural-network/minimal-cheats-and-illusions-1800w.png" alt="Two-by-four dark-slate showcase of minimal triggers and semantic illusions on Cyan’s untouched 2005 neural networks. The top row shows the exact four-dot floor triggering Torture in Todelmer at 0.829 and Noloben at 0.743, followed by two opposite single-line slashes in Tahgira where plus 13.5 degrees scores Friendship at 0.915 and minus 9.5 degrees scores Torture at 0.994. The bottom row shows beamed musical notes triggering Torture in Noloben at 0.998, a single added dot flipping the notes to Friendship in Laki’ahn at 0.999, an umbrella plus one raindrop summoning Rain in Noloben at 0.958, and adding a single period to cursive glthr breaking Laki’ahn’s tie cleanly into Wind at 0.992." width="1800" height="1036" data-full="/images/end-of-ages-slate-neural-network/minimal-cheats-and-illusions.png" data-full-width="2112" loading="lazy" decoding="async"></a></p>
<p><em>Top: four dots that command a Bahro, and the two opposite slashes of Tahgira. Bottom: doodles and words as the game shrinks them (insets), with a red dot where one added dot changes the answer.</em></p>
</div>

</div>


<p>I drew the same N on each of the four slates in the running game. The four commands came out as computed:</p>
<p><img src="https://glthr.com/images/end-of-ages-slate-neural-network/chameleon-n-live-4ages.png" alt="Four-panel composite of unmodified Myst V running live across all four slate Ages, showing the exact same five-point chalk N drawn on each stone tablet: Laki’ahn recognizes Pedestal 2 at 0.987, Noloben recognizes Rain at 0.716, Todelmer recognizes Pedestal 2 at 0.899, and Tahgira recognizes Pedestal 3 at 0.989." width="1322" height="1090" data-full="/images/end-of-ages-slate-neural-network/chameleon-n-live-4ages.png" data-full-width="1322" loading="lazy" decoding="async"></p>
<p><em>One N, four Ages, in the running game: Laki’ahn (Pedestal 2, 0.99), Noloben (Rain, 0.72), Todelmer (Pedestal 2, 0.90) and Tahgira (Pedestal 3, 0.99).</em></p>
<h3 id="heading-doodles-and-words">Doodles and Words<a class="anchor" href="#heading-doodles-and-words" aria-hidden="true" tabindex="-1">#</a></h3>
<p>Everyday drawings land somewhere too:</p>
<ul>
<li>An <span class="cue" data-cue="myst5-chameleon" data-cue-value="flip-umbrella">umbrella with one raindrop</span> beside it brings <strong>Rain</strong> in Noloben. Without the raindrop, the Bahro shrugs.</li>
<li>Beamed musical notes (♫) read as <strong>Torture</strong> in Noloben, and one <span class="cue" data-cue="myst5-chameleon" data-cue-value="flip-music">dot beside them</span> turns Laki’ahn’s answer from Torture to <strong>Friendship</strong>.</li>
<li><strong>“AI”</strong> in Todelmer and <strong>“&lt;3”</strong> in Laki’ahn both read as <strong>Torture</strong>. I wrote Yeesha’s name with one E, <strong>“YESHA”</strong>, and got <strong>Friendship</strong> in three of the four Ages. <strong>“CYAN”</strong> tells the Bahro of Noloben to <strong>Sing</strong>.</li>
</ul>
<p>Here is the umbrella in the running game, on Noloben’s beach. The bare umbrella returns Unknown. With one raindrop, the slate is read as Rain, and a Bahro comes onto the sand to bring it:</p>
<p><a href="https://media.glthr.com/end-of-ages-slate-neural-network/eoa-slate-umbrella-3.mp4" target="_blank" rel="noopener"><img src="https://glthr.com/images/end-of-ages-slate-neural-network/eoa-slate-umbrella-3-poster.jpg" alt="Myst V on Noloben’s beach. A bare umbrella drawn on the slate is read as Unknown, and the Bahro who comes leaves the slate behind. The same umbrella with one raindrop is read as Rain, at 0.965. A Bahro raises its arms, a flash follows, and rain falls on the beach."></a></p><p>[Video: Myst V on Noloben’s beach. A bare umbrella drawn on the slate is read as Unknown, and the Bahro who comes leaves the slate behind. The same umbrella with one raindrop is read as Rain, at 0.965. A Bahro raises its arms, a flash follows, and rain falls on the beach.]</p>
<p><em>An umbrella and one raindrop on Noloben’s slate: Rain scores 0.97, far ahead of the runner-up, and the Bahro obliges.</em></p>
<p>The margin rule is what stands between the Bahro and plain nonsense. As a joke, I signed “glthr” in cursive on Laki’ahn’s slate. My signature scored 0.98 for Wind and 0.96 for Pedestal 1. I have been called worse. The two scores were too close, and the game answered Unknown.</p>
<p><a href="https://media.glthr.com/end-of-ages-slate-neural-network/eoa-slate-glthr-3.mp4" target="_blank" rel="noopener"><img src="https://glthr.com/images/end-of-ages-slate-neural-network/eoa-slate-glthr-3-poster.jpg" alt="Myst V on Laki’ahn’s slate: “glthr” signed in smooth cursive, its t crossed, scores 0.983 for Wind and 0.961 for Pedestal 1 at once, and the two are too close, so the dropped slate is read as Unknown. A Bahro comes, hesitates, and leaves it."></a></p><p>[Video: Myst V on Laki’ahn’s slate: “glthr” signed in smooth cursive, its t crossed, scores 0.983 for Wind and 0.961 for Pedestal 1 at once, and the two are too close, so the dropped slate is read as Unknown. A Bahro comes, hesitates, and leaves it.]</p>
<p><em>Signing “glthr” in cursive on Laki’ahn’s slate: Wind scores 0.98 and Pedestal 1 scores 0.96 at once, so the game answers Unknown.</em></p>
<p>One dot can settle such a tie, in either direction. In the figure, <span class="cue" data-cue="myst5-chameleon" data-cue-value="flip-glthr">a period after the signature</span> tips it to Wind. In the running game, with a more compact signature, the same period did the opposite: “glthr” was Wind, and “glthr.” was Unknown. The box around the drawing grows with the dot, and every cell of the grid moves with it.</p>
<p>When the answer is Unknown, a Bahro still comes, but with no order to carry out. In Todelmer, “CYAN” scored 0.998 for Friendship and 0.997 for Sing, a near-perfect tie. The Bahro hesitated by the slate and left it where it lay:</p>
<p><a href="https://media.glthr.com/end-of-ages-slate-neural-network/eoa-slate-cyan-bahro.mp4" target="_blank" rel="noopener"><img src="https://glthr.com/images/end-of-ages-slate-neural-network/eoa-slate-cyan-bahro-poster.jpg" alt="Myst V in Todelmer. CYAN is written on the slate. Friendship scores 0.998 and Sing 0.997, too close to choose, so the game answers Unknown. After a few steps back, a Bahro comes to the slate, hesitates, and leaves it where it lies."></a></p><p>[Video: Myst V in Todelmer. CYAN is written on the slate. Friendship scores 0.998 and Sing 0.997, too close to choose, so the game answers Unknown. After a few steps back, a Bahro comes to the slate, hesitates, and leaves it where it lies.]</p>
<p><em>“CYAN” on Todelmer’s slate: Friendship and Sing both score above 0.99, so the game answers Unknown, and the Bahro leaves the slate behind.</em></p>
<h2 id="heading-a-hidden-eraser">A Hidden Eraser<a class="anchor" href="#heading-a-hidden-eraser" aria-hidden="true" tabindex="-1">#</a></h2>
<p>The slate carries an unfinished feature: an eraser gesture, named after Zorro inside the engine, meant to let players slash a Z across the stone to wipe it. It was left switched off in the shipped game. Slash a Z today, and the chalk stays. Clearing the slate takes a click on the erase button.</p>
<p><a href="https://media.glthr.com/end-of-ages-slate-neural-network/eoa-slate-scribble-and-zorro-2.mp4" target="_blank" rel="noopener"><img src="https://glthr.com/images/end-of-ages-slate-neural-network/eoa-slate-scribble-and-zorro-2-poster.jpg" alt="Myst V on Laki’ahn’s slate: slashing a Z across the stone leaves it untouched because that gesture is switched off, clicking the Erase icon wipes the slate clean, and filling half of the stone makes the dropped slate count as a scribble."></a></p><p>[Video: Myst V on Laki’ahn’s slate: slashing a Z across the stone leaves it untouched because that gesture is switched off, clicking the Erase icon wipes the slate clean, and filling half of the stone makes the dropped slate count as a scribble.]</p>
<p><em>A Z slashed across Laki’ahn’s slate leaves the chalk in place, so clearing it takes the erase button. Filling half of the stone then trips the 40% scribble cutoff when the slate is dropped.</em></p>
<p>I tried the gesture again with the eraser enabled. A wide Z across the stone then wipes both the drawing and the Z itself, as soon as the mouse button is released:</p>
<p><a href="https://media.glthr.com/end-of-ages-slate-neural-network/eoa-slate-zorro-live-2.mp4" target="_blank" rel="noopener"><img src="https://glthr.com/images/end-of-ages-slate-neural-network/eoa-slate-zorro-live-2-poster.jpg" alt="Myst V on Laki’ahn’s slate with the switched-off gesture turned back on: after a short chalk mark, a wide Z slashed across the stone wipes the entire slate clean when the mouse button is released."></a></p><p>[Video: Myst V on Laki’ahn’s slate with the switched-off gesture turned back on: after a short chalk mark, a wide Z slashed across the stone wipes the entire slate clean when the mouse button is released.]</p>
<p><em>The Zorro eraser, switched back on in the running game, at its default sensitivity of 0.30: one wide Z across the stone clears the drawing on release.</em></p>
<h2 id="heading-the-same-design-reading-digits">The Same Design, Reading Digits<a class="anchor" href="#heading-the-same-design-reading-digits" aria-hidden="true" tabindex="-1">#</a></h2>
<p>Could the slate reader tell a handwritten 7 from a 9? I kept Cyan’s design and trained a new set of weights on 60,000 handwritten digits from MNIST. I shrank each digit to fit the slate’s 16 × 16 grid. Then I tried the reader on the 10,000 digits in the test set, none of which it had seen during training.</p>
<p>On about 96% of the test digits, its first choice was right. I then applied the game’s rule: the best score has to beat the next one by at least 0.70. The reader gave an answer for 86% of the digits. Just over 99% of those answers were right. Here is what happened to two sevens.</p>
<p><a class="img-link" href="https://glthr.com/images/end-of-ages-slate-neural-network/handwritten-sevens.w.png" title="Open full size (2400×1395)"><img class="has-dark" src="https://glthr.com/images/end-of-ages-slate-neural-network/handwritten-sevens.w-1800w.png" alt="Two handwritten sevens from the MNIST test set, each shown on its original 28 by 28 square and on the 16 by 16 grid fed to the digit reader. For the first, 7 scores 0.97 and 9 scores 0.03. Its lead of 0.94 clears the required 0.70. For the second, 7 scores 0.96 and 9 scores 0.63. Its lead of 0.33 gives Unknown." width="1800" height="1046" data-full="/images/end-of-ages-slate-neural-network/handwritten-sevens.w.png" data-full-width="2400" loading="lazy" decoding="async"></a></p>
<p><em>The digit reader you can try above gives both drawings a high score for 7. The second drawing also scores 0.63 for 9, close enough to make the reader answer “Unknown”.</em></p>
<p>You can try your own handwriting by switching the first figure to <span class="cue" data-cue="myst5-perceptron" data-cue-value="digits-7">Digits 0–9</span>. Try leaving the slate blank, too. With the extra S-curve that Cyan used on the inputs, no digit scored above 0.4 on a blank grid. When I trained the network without that curve, it read more digits correctly, but it also looked at an empty square and called it a 5. I would need Cyan’s training drawings to see whether the same trade-off held for the Bahro signs.</p>
<h2 id="heading-technical-details">Technical Details<a class="anchor" href="#heading-technical-details" aria-hidden="true" tabindex="-1">#</a></h2>
<p>The boxes below give the layout of the files, the addresses in the program, the equations and the scores behind each section. They were checked against the four <code>dat/*.tron</code> files, the game program <code>eoa.exe</code>, which the Mac edition runs inside its own copy of Wine, and the game’s Python scripts, decrypted from <code>python.pak</code>. The program keeps no names for its functions: each is named here by what it does and by its address.</p>
<details class="fold">
  <summary>The symbols and their internal names</summary>
  <div class="fold-body">
    <p>The four networks are <code>laki.tron</code> (Laki’ahn), <code>srln.tron</code> (Noloben), <code>tdlm.tron</code> (Todelmer) and <code>thgr.tron</code> (Tahgira). libHSPlasma, the community’s library for the files of Plasma, does not read <code>.tron</code> files.</p>
<div class="table-wrap">
<table>
  <thead>
      <tr>
          <th>Name used in this article</th>
          <th>Output of the network</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Pedestal 1, 2 or 3 of an Age</td>
          <td><code>Laki01</code>, <code>Laki02</code>, <code>Laki03</code>; <code>Srln01</code>, <code>Srln02</code>; <code>Tdlm01</code>, <code>Tdlm02</code>; <code>Thgr01</code>, <code>Thgr02</code>, <code>Thgr03</code></td>
      </tr>
      <tr>
          <td>Keep, one for each Age</td>
          <td><code>LakiKeep</code>, <code>SrlnKeep</code>, <code>TdlmKeep</code>, <code>ThgrKeep</code></td>
      </tr>
      <tr>
          <td>Wind (Laki’ahn), Rain (Noloben), Time (Todelmer), Heat (Tahgira)</td>
          <td><code>LakiWind</code>, <code>SrlnRain</code>, <code>TdlmTime</code>, <code>ThgrHeat</code></td>
      </tr>
      <tr>
          <td>Snake, Sing, Friendship, Torture</td>
          <td><code>xSnake</code>, <code>xSing</code>, <code>xFriendship</code>, <code>xTorture</code></td>
      </tr>
      <tr>
          <td>Take, Direbo</td>
          <td><code>Take</code>, <code>Direbo</code></td>
      </tr>
  </tbody>
</table>
</div>
<p>The pictures of the symbols come from the game’s textures: <code>xpedsymb-*</code> in <code>Direbo_Textures.prp</code> (the pedestals, Keep, Take and Direbo), <code>lakiwindsymbolcarving</code>, <code>srlnraindropsymbol</code>, <code>tdlmtimesymbol</code> and <code>thgrheatventsymbolbright_slate</code> in the textures of each Age, and <code>xfriendshipsymbol</code>, <code>xsingsymbol</code> and the journal sketch <code>xjournalsketch_painsymbol</code> in <code>GUI_BkBookImages.prp</code>. No texture shows the Snake.</p>
  </div>
</details><details class="fold">
  <summary>The layout of the network files</summary>
  <div class="fold-body">
    <p>Each file holds one perceptron of three layers (256 → 268 → 10 or 11): a matrix of 256 × 268 weights, then one of 268 × 10 or 268 × 11. The function that loads a network (<code>eoa.exe 0x6e36e0</code>) reads each file to its last byte: 290,064 bytes for <code>laki.tron</code> and <code>thgr.tron</code>, 288,979 bytes for <code>srln.tron</code> and <code>tdlm.tron</code>.</p>
<ul>
<li><strong>Header (9 bytes):</strong> format version <code>6</code>; four flags <code>(1, 1, 1, 0)</code>, stored at <code>+0x44..+0x47</code>, for <code>antiAlias</code>, <code>scaleToFit</code>, <code>keepAspect</code> and <code>center</code>; then <code>n_in = 256</code> as a <code>uint32</code>.</li>
<li><strong>Input layer (256 neurons):</strong> each neuron has an empty name (with a <code>uint16</code> length), an activation type <code>2</code>, and 268 outgoing weights as little-endian <code>float32</code>: the matrix <code>W1</code>, 68,608 numbers.</li>
<li><strong>Output layer (10 or 11 named neurons):</strong> Laki’ahn and Tahgira have 11 outputs, with three pedestals; Noloben and Todelmer have 10, with two. The difference of 1,085 bytes between the files is that neuron: 268 weights of 4 bytes, and 13 bytes for its header and its name.</li>
<li><strong>Hidden layer (268 neurons):</strong> <code>n_hidden_layers = 1</code> and <code>n_hid = 268</code> as <code>uint32</code>, then each neuron with an empty name, an activation type <code>2</code>, and 10 or 11 outgoing weights, the matrix <code>W2</code>.</li>
</ul>
<p>The format has no bias neuron.</p>
  </div>
</details><details class="fold">
  <summary>How a drawing becomes 256 cells</summary>
  <div class="fold-body">
    <p>The function that turns the strokes into the grid (<code>eoa.exe 0x6e63e0</code>) computes the box <code>(minX, minY, maxX, maxY)</code> of all the strokes, and uses <code>span = max(maxX - minX, maxY - minY)</code> on both axes, since <code>scaleToFit</code> and <code>keepAspect</code> are set. <code>center</code> is <code>0</code>, and the centering branch at <code>0x6e65e0</code> runs only when <code>center &amp;&amp; !scaleToFit</code>. Every point is therefore <code>(x - minX) / span</code> and <code>(y - minY) / span</code>: a tall stroke starts at column 0, and a flat one at row 0.</p>
<p>Each segment goes to the function that draws a line (<code>0x6ed180</code>), which multiplies the coordinates by 15, steps along the longer axis by 1.0, rounds <code>(cx, cy)</code> to <code>(ix, iy) = (floor(cx + 0.5), floor(cy + 0.5))</code>, and, through <code>0x6ed570</code> (<code>antiAlias = 1</code>), sets the cell to the larger of its value and <code>max(0, 1 - 2 * ((cx - ix)^2 + (cy - iy)^2))</code>.</p>
  </div>
</details><details class="fold">
  <summary>The sigmoid on the input layer</summary>
  <div class="fold-body">
    <p>Every neuron of the four <code>.tron</code> files carries the same activation type, <code>2</code>: in the output layer, in the hidden layer and in the input layer. It is the logistic sigmoid, <code>1 / (1 + exp(-x))</code>, that the hidden and output layers need. The function behind <code>recognize()</code> (<code>eoa.exe 0x6e2e70</code>) applies it at each layer:</p>
<ol>
<li>At <code>0x6e3064</code>, each of the 256 rendered values, between 0 and 1, is copied into the value of an input neuron.</li>
<li>At <code>0x6e3089</code>, the input layer is fed forward (<code>0x6e5470</code>), one neuron at a time (<code>0x6e4960</code>).</li>
<li>An input neuron has no incoming connection, so the weighted sum is skipped, and the neuron’s activation (<code>0x6e4930</code>) is applied to the value of the cell itself.</li>
</ol>
<p>The whole calculation, for a drawing x, with σ the sigmoid:</p>
<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>a</mi><mn>0</mn></msub><mo>=</mo><mi>σ</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo separator="true">,</mo><mspace width="2em"/><msub><mi>a</mi><mn>1</mn></msub><mo>=</mo><mi>σ</mi><mo stretchy="false">(</mo><msub><mi>a</mi><mn>0</mn></msub><msub><mi>W</mi><mn>1</mn></msub><mo stretchy="false">)</mo><mo separator="true">,</mo><mspace width="2em"/><mi>y</mi><mo>=</mo><mi>σ</mi><mo stretchy="false">(</mo><msub><mi>a</mi><mn>1</mn></msub><msub><mi>W</mi><mn>2</mn></msub><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">a_0 = \sigma(x), \qquad a_1 = \sigma(a_0 W_1), \qquad y = \sigma(a_1 W_2)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="katex-base"><span class="katex-strut" style="height:0.5806em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal">a</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3011em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="katex-sizing reset-size6 size3 mtight"><span class="mord mtight">0</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="katex-base"><span class="katex-strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">σ</span><span class="mopen">(</span><span class="mord mathnormal">x</span><span class="mclose">)</span><span class="mpunct">,</span><span class="mspace" style="margin-right:2em;"></span><span class="mspace" style="margin-right:0.1667em;"></span><span class="mord"><span class="mord mathnormal">a</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3011em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="katex-sizing reset-size6 size3 mtight"><span class="mord mtight">1</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="katex-base"><span class="katex-strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">σ</span><span class="mopen">(</span><span class="mord"><span class="mord mathnormal">a</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3011em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="katex-sizing reset-size6 size3 mtight"><span class="mord mtight">0</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.1389em;">W</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3011em;"><span style="top:-2.55em;margin-left:-0.1389em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="katex-sizing reset-size6 size3 mtight"><span class="mord mtight">1</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mclose">)</span><span class="mpunct">,</span><span class="mspace" style="margin-right:2em;"></span><span class="mspace" style="margin-right:0.1667em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">y</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="katex-base"><span class="katex-strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">σ</span><span class="mopen">(</span><span class="mord"><span class="mord mathnormal">a</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3011em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="katex-sizing reset-size6 size3 mtight"><span class="mord mtight">1</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.1389em;">W</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3011em;"><span style="top:-2.55em;margin-left:-0.1389em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="katex-sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mclose">)</span></span></span></span></span><p>With the weights as shipped and the sigmoid removed from the input layer, an empty slate gives <code>xFriendship</code> a score of 0.305 in <code>tdlm.tron</code>: all 268 hidden neurons then sit at 0.5. With the sigmoid, an empty slate and a slate filled with ink score between 0.001 and 0.036, in the four Ages.</p>
  </div>
</details><details class="fold">
  <summary>The two acceptance rules in the script</summary>
  <div class="fold-body">
    <p><code>RecognizeSketch()</code> is in <code>xBahroSlateGUI.py</code> (line 489), in the decrypted <code>python.pak</code>. <code>GetScribblePercent()</code> is in the program (<code>eoa.exe 0x6e36a0</code>).</p>
<ol>
<li><strong>The scribble rule:</strong> <code>scribblePercent = count(pixel != 0.0) / 256.0</code>. A value of <code>0.4</code> or more (103 cells) returns <code>'Scribble'</code> at once.</li>
<li><strong>The margin rule:</strong> the results are filtered to the symbols of the Age and to <code>('xFriendship', 'xSing', 'xSnake', 'xTorture', 'Take', 'Direbo')</code>. The script then requires <code>bestMatch[1] - nextBestMatch[1] &gt;= 0.7</code>, and returns <code>'Unknown'</code> otherwise.</li>
</ol>
  </div>
</details><details class="fold">
  <summary>How the 42 pictures were recovered</summary>
  <div class="fold-body">
    <p>Each of the 42 pictures is one output neuron of <code>laki.tron</code>, <code>srln.tron</code>, <code>tdlm.tron</code> or <code>thgr.tron</code>, inverted by gradient ascent from the weights, with the forward calculation of the game, sigmoid on the inputs included. <code>xSnake</code> sits against the left edge and <code>LakiWind</code> against the top edge. <code>Take</code>, <code>xSnake</code>, <code>xSing</code>, <code>xFriendship</code>, <code>xTorture</code> and <code>Direbo</code> have the same shape and position in the four files.</p>
  </div>
</details><details class="fold">
  <summary>The scores of the simple strokes</summary>
  <div class="fold-body">
    <p>Shapes of one stroke, through the rasterizer and the weights of the game:</p>
<div class="table-wrap">
<table>
  <thead>
      <tr>
          <th>Drawing</th>
          <th>Network</th>
          <th style="text-align: right">Best output</th>
          <th style="text-align: right">Runner-up</th>
          <th style="text-align: right">Margin</th>
          <th style="text-align: right">Lit cells</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Straight vertical line</td>
          <td><code>laki.tron</code></td>
          <td style="text-align: right"><code>Laki02</code> (0.998)</td>
          <td style="text-align: right"><code>xSing</code> (0.002)</td>
          <td style="text-align: right">0.996</td>
          <td style="text-align: right">6.2%</td>
      </tr>
      <tr>
          <td>Plain <code>V</code></td>
          <td><code>laki.tron</code></td>
          <td style="text-align: right"><code>xTorture</code> (0.908)</td>
          <td style="text-align: right"><code>xSing</code> (0.001)</td>
          <td style="text-align: right">0.906</td>
          <td style="text-align: right">12.1%</td>
      </tr>
      <tr>
          <td>Plain circle</td>
          <td><code>srln.tron</code></td>
          <td style="text-align: right"><code>Take</code> (0.995)</td>
          <td style="text-align: right"><code>SrlnRain</code> (0.003)</td>
          <td style="text-align: right">0.992</td>
          <td style="text-align: right">18.0%</td>
      </tr>
      <tr>
          <td>Plain circle</td>
          <td><code>tdlm.tron</code></td>
          <td style="text-align: right"><code>TdlmKeep</code> (1.000)</td>
          <td style="text-align: right"><code>Take</code> (0.034)</td>
          <td style="text-align: right">0.966</td>
          <td style="text-align: right">18.0%</td>
      </tr>
      <tr>
          <td>Plain square</td>
          <td><code>srln.tron</code></td>
          <td style="text-align: right"><code>Take</code> (1.000)</td>
          <td style="text-align: right"><code>Srln01</code> (0.056)</td>
          <td style="text-align: right">0.944</td>
          <td style="text-align: right">23.4%</td>
      </tr>
      <tr>
          <td>Plain square</td>
          <td><code>tdlm.tron</code></td>
          <td style="text-align: right"><code>xSnake</code> (0.994)</td>
          <td style="text-align: right"><code>TdlmKeep</code> (0.267)</td>
          <td style="text-align: right">0.728</td>
          <td style="text-align: right">23.4%</td>
      </tr>
      <tr>
          <td>Zigzag of three bars (<code>E</code>)</td>
          <td><code>tdlm.tron</code></td>
          <td style="text-align: right"><code>xSnake</code> (1.000)</td>
          <td style="text-align: right"><code>Tdlm01</code> (0.001)</td>
          <td style="text-align: right">0.999</td>
          <td style="text-align: right">14.5%</td>
      </tr>
  </tbody>
</table>
</div>
<p>The plain circle also scores 0.989 for <code>Take</code> in <code>laki.tron</code>.</p>
<p>In the clips, the game itself answered. <code>laki.tron</code> gave the Snake of the first clip 0.995 for <code>xSnake</code>, against 0.004 for the runner-up, and the vertical line 0.960 for <code>Laki02</code>, against 0.002. The cursive “glthr” scored 0.983 for <code>LakiWind</code> and 0.961 for <code>Laki01</code>: a margin of 0.022, hence <code>Unknown</code>.</p>
<p>The plain circle of Todelmer is a borderline case. In one test, <code>tdlm.tron</code> gave it 0.999 for <code>TdlmKeep</code>, against 0.284 for <code>Take</code>. Drawn again eight times, in two sizes, a plain circle kept <code>TdlmKeep</code> above 0.99, but <code>Take</code> rose to between 0.53 and 0.82, and the game answered <code>Unknown</code>.</p>
  </div>
</details><details class="fold">
  <summary>The switched-off eraser in the code</summary>
  <div class="fold-body">
    <p>The control of the slate has a “Zorro guesture” (so spelled), with <code>enableZorro</code> and <code>setZorroSensitivity</code>. The shipped <code>xBahroSlateGUI.py</code> calls <code>enableZorro(0)</code>. Calling <code>sc.enableZorro(1)</code> on the control with tag <code>100</code> of <code>lakiSlateGUI</code>, after <code>PickupSlate()</code> has set it back to <code>0</code>, brings back the four stages of the recognizer in the program (<code>eoa.exe 0x709307</code> to <code>0x70a6b8</code>). A wide <code>Z</code> across the stone, with <code>u</code> between 0.08 and 0.92, fires <code>kSketchErased</code> when the mouse button is released, and wipes the drawing and the <code>Z</code>. The default sensitivity is 0.30.</p>
  </div>
</details><details class="fold">
  <summary>The scores of the chameleons, the dots and the doodles</summary>
  <div class="fold-body">
    <p>The same stroke through the four files:</p>
<div class="table-wrap">
<table>
  <thead>
      <tr>
          <th>Stroke</th>
          <th><code>laki.tron</code></th>
          <th><code>srln.tron</code></th>
          <th><code>tdlm.tron</code></th>
          <th><code>thgr.tron</code></th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td><code>Γ</code> corner of two segments (31 lit cells, 12.1%)</td>
          <td><code>Laki02</code> (0.985)</td>
          <td><code>Take</code> (0.959)</td>
          <td><code>xSnake</code> (0.905)</td>
          <td><code>Thgr03</code> (0.860)</td>
      </tr>
      <tr>
          <td><code>N</code> in one stroke (18.4%)</td>
          <td><code>Laki02</code> (0.999)</td>
          <td><code>SrlnRain</code> (0.961)</td>
          <td><code>Tdlm02</code> (0.961)</td>
          <td><code>Thgr03</code> (1.000)</td>
      </tr>
      <tr>
          <td>Plain figure 8 (19.1%)</td>
          <td><code>xSnake</code></td>
          <td><code>xSnake</code></td>
          <td><code>xSnake</code></td>
          <td><code>xSnake</code></td>
      </tr>
  </tbody>
</table>
</div>
<p>The <code>N</code> gives four outputs that belong to one Age each, with every margin at 0.958 or more. The figure 8 scores between 0.965 and 0.999 for <code>xSnake</code>, with every margin at 0.961 or more.</p>
<p>The least ink:</p>
<ul>
<li><strong>Three cells.</strong> None of the 11,054,080 patterns of three cells passes, in any of the four networks. The best margin is 0.557, in Noloben.</li>
<li><strong>Four cells and more.</strong> All 42 symbols can be triggered with 4 to 14 cells (1.6% to 5.5% of the slate; the median is 7). <code>tdlm:xTorture</code> (0.829, margin 0.824) and <code>srln:xTorture</code> (0.743, margin 0.741) fire from four dots.</li>
<li><strong>Straight lines.</strong> 41 of the 42 outputs can be triggered with two segments or fewer (<code>ThgrHeat</code> needs an arc), and 8 with a single line. In Tahgira, a line tilted 13.5° downward scores <code>xFriendship</code> (0.915, margin 0.909), and a line tilted 9.5° upward scores <code>xTorture</code> (0.994, margin 0.973). At 8° upward, three Ages score <code>xTorture</code>.</li>
</ul>
<p>The doodles and the words:</p>
<ul>
<li>Beamed notes (<code>♫</code>) score 0.998 for <code>xTorture</code> in Noloben. With one dot beside them, Laki’ahn goes from <code>xTorture</code> to <code>xFriendship</code> (0.999, margin 0.99).</li>
<li>The umbrella with one raindrop scores <code>SrlnRain</code> (0.958, margin 0.90).</li>
<li><code>&quot;AI&quot;</code> scores 0.987 for <code>xTorture</code> in Todelmer, and <code>&quot;&lt;3&quot;</code> 0.997 in Laki’ahn. <code>&quot;YESHA&quot;</code> reads as <code>xFriendship</code> in three of the four Ages, and <code>&quot;CYAN&quot;</code> scores <code>xSing</code> (0.92) in Noloben.</li>
<li>The cursive <code>&quot;glthr&quot;</code> reads as <code>xFriendship</code> in Todelmer (margin 0.91) and in Tahgira (margin 0.83). With a period, <code>&quot;glthr.&quot;</code>, the tie of Laki’ahn breaks into <code>LakiWind</code> (0.992, margin 0.92).</li>
</ul>
  </div>
</details><details class="fold">
  <summary>The scores measured in the running game</summary>
  <div class="fold-body">
    <p>For these checks, each stroke was projected through the camera of the slate of its Age (<code>dv/du</code> between 1.14 and 1.17 on the texture of 512 × 512), drawn on the slate in the running game, and the answer of <code>perceptron.recognize()</code> was read back. This rules out an error of my own copy of the calculation.</p>
<div class="table-wrap">
<table>
  <thead>
      <tr>
          <th>Test in the running game (1024 × 768)</th>
          <th>Age</th>
          <th>Answer of the game</th>
          <th style="text-align: right">Best output</th>
          <th style="text-align: right">Runner-up</th>
          <th style="text-align: right">Margin</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td><code>N</code> of five points</td>
          <td>Laki’ahn</td>
          <td><code>Laki02</code></td>
          <td style="text-align: right">0.987</td>
          <td style="text-align: right">0.002</td>
          <td style="text-align: right">0.985</td>
      </tr>
      <tr>
          <td><code>N</code> of five points</td>
          <td>Noloben</td>
          <td><code>SrlnRain</code></td>
          <td style="text-align: right">0.716</td>
          <td style="text-align: right">0.002</td>
          <td style="text-align: right">0.714</td>
      </tr>
      <tr>
          <td><code>N</code> of five points</td>
          <td>Todelmer</td>
          <td><code>Tdlm02</code></td>
          <td style="text-align: right">0.899</td>
          <td style="text-align: right">0.002</td>
          <td style="text-align: right">0.897</td>
      </tr>
      <tr>
          <td><code>N</code> of five points</td>
          <td>Tahgira</td>
          <td><code>Thgr03</code></td>
          <td style="text-align: right">0.989</td>
          <td style="text-align: right">0.039</td>
          <td style="text-align: right">0.950</td>
      </tr>
      <tr>
          <td>Umbrella, no raindrop</td>
          <td>Noloben</td>
          <td><code>Unknown</code></td>
          <td style="text-align: right">0.372 (<code>Take</code>)</td>
          <td style="text-align: right">0.090 (<code>Srln02</code>)</td>
          <td style="text-align: right">0.282</td>
      </tr>
      <tr>
          <td>Umbrella and one raindrop</td>
          <td>Noloben</td>
          <td><code>SrlnRain</code></td>
          <td style="text-align: right">0.965</td>
          <td style="text-align: right">0.049</td>
          <td style="text-align: right">0.917</td>
      </tr>
      <tr>
          <td><code>&quot;YESHA&quot;</code></td>
          <td>Tahgira</td>
          <td><code>xFriendship</code></td>
          <td style="text-align: right">0.997</td>
          <td style="text-align: right">0.090</td>
          <td style="text-align: right">0.906</td>
      </tr>
      <tr>
          <td><code>&quot;CYAN&quot;</code></td>
          <td>Todelmer</td>
          <td><code>Unknown</code></td>
          <td style="text-align: right">0.998 (<code>xFriendship</code>)</td>
          <td style="text-align: right">0.997 (<code>xSing</code>)</td>
          <td style="text-align: right">0.001</td>
      </tr>
      <tr>
          <td>Straight line, 13.5° downward</td>
          <td>Tahgira</td>
          <td><code>xFriendship</code></td>
          <td style="text-align: right">0.744</td>
          <td style="text-align: right">0.003</td>
          <td style="text-align: right">0.741</td>
      </tr>
      <tr>
          <td>Straight line, 9.5° upward</td>
          <td>Tahgira</td>
          <td><code>xTorture</code></td>
          <td style="text-align: right">0.886</td>
          <td style="text-align: right">0.023</td>
          <td style="text-align: right">0.863</td>
      </tr>
      <tr>
          <td>Compact cursive <code>&quot;glthr&quot;</code>, then <code>&quot;glthr.&quot;</code></td>
          <td>Laki’ahn</td>
          <td><code>LakiWind</code>, then <code>Unknown</code></td>
          <td style="text-align: right">0.768, then 0.413</td>
          <td style="text-align: right">0.041, then 0.003</td>
          <td style="text-align: right">0.727, then 0.410</td>
      </tr>
  </tbody>
</table>
</div>
<p>In the umbrella clip, the bare umbrella returns <code>Unknown</code> (<code>SrlnRain</code> at 0.012), and the raindrop, one dot at <code>(681, 155)</code>, takes <code>SrlnRain</code> to 0.965.</p>
<p>A Bahro comes only for a slate that lies off every pedestal, and only once the player has walked far enough from it: the game waits for the player to leave an area around the slate (<code>RunBahroLinkIn()</code> in <code>xBahroHandler.py</code>, in the decrypted <code>python.pak</code>). In my tests, no Bahro came for a scribble. It then plays <code>BahroLinkInOutFriendly</code> for Friendship, <code>BahroLinkInOutTortured</code> for Torture, <code>BahroLinkInScaredOut</code> for the Snake, <code>BahroSing01</code> for Sing and <code>BahroLinkInOutConfused</code> for <code>Unknown</code>.</p>
  </div>
</details><details class="fold">
  <summary>The four versions of the handwritten-digit reader</summary>
  <div class="fold-body">
    <p>The digit reader has 256 inputs, 268 hidden detectors, 10 outputs and about 71,000 weights. With Cyan’s design it uses no biases. The weights take less than 300 KB on disk, and a reading takes a fraction of a millisecond. The table compares all four versions on the same 10,000 MNIST test digits.</p>
<div class="table-wrap">
<table>
  <thead>
      <tr>
          <th>Variant</th>
          <th style="text-align: right">Right answers</th>
          <th style="text-align: right">Accepted (margin of 0.70)</th>
          <th style="text-align: right">Right among the accepted</th>
          <th style="text-align: right">Best score on a blank square</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>As in the game: no bias, sigmoid on the inputs</td>
          <td style="text-align: right">93.80%</td>
          <td style="text-align: right">80.16%</td>
          <td style="text-align: right">99.04%</td>
          <td style="text-align: right">0.399</td>
      </tr>
      <tr>
          <td>The same, with the corner step of <code>Pattern::Render</code></td>
          <td style="text-align: right">95.67%</td>
          <td style="text-align: right">86.02%</td>
          <td style="text-align: right">99.28%</td>
          <td style="text-align: right">0.211</td>
      </tr>
      <tr>
          <td>No bias, no sigmoid on the inputs</td>
          <td style="text-align: right">98.40%</td>
          <td style="text-align: right">96.03%</td>
          <td style="text-align: right">99.57%</td>
          <td style="text-align: right">0.896 (digit 5)</td>
      </tr>
      <tr>
          <td>Standard network: biases, no sigmoid on the inputs</td>
          <td style="text-align: right">98.50%</td>
          <td style="text-align: right">96.18%</td>
          <td style="text-align: right">99.60%</td>
          <td style="text-align: right">0.974 (digit 5)</td>
      </tr>
  </tbody>
</table>
</div>
<p>The second row can be written as a <code>.tron</code> file and read by the game’s own code. Without the sigmoid on the inputs, the weights are free of a contrast squeezed to 0.231, and a blank square is read as a 5.</p>
<p>The design has limits that the game works around. It scales a drawing by the box around all of its ink, so one stray dot in a corner shrinks the symbol and moves every cell. It keeps no trace of the order or the direction of the strokes: a circle drawn clockwise and one drawn the other way are the same picture. And its outputs are independent sigmoids, trained on valid symbols only, with no output for “other”: hence the scribble cutoff and the margin rule, written by hand.</p>
  </div>
</details><h2 id="heading-conclusion">Conclusion<a class="anchor" href="#heading-conclusion" aria-hidden="true" tabindex="-1">#</a></h2>
<p>When you find the sign for the Snake in Laki’ahn, you still have to draw it. Your snake will bend in different places from mine. A trained recognizer gives us room to draw the same sign in our own hands. It also gives us room to be misunderstood. On the beach in Noloben, I could draw my umbrella well enough for another person to recognize it and still have the Bahro walk away.</p>
<p>Was that impressive in 2005? Sixteen years earlier, Yann LeCun and his colleagues had already trained a neural network to read handwritten digits from US ZIP codes.<sup id="fnref:3"><a href="#fn:3" class="footnote-ref" role="doc-noteref">3</a></sup> What impresses me is the job Cyan gave it. The designers decided what the Bahro would do for each sign. They left it to the network to decide whether the marks I made with a mouse looked enough like one. All I changed on my second try was to put a drop beside the umbrella. This time the Bahro raised its arms and it rained.</p>
<div class="footnotes" role="doc-endnotes">
<hr>
<ol>
<li id="fn:1">
<p>Rainier, <a href="http://worthplaying.com/article/2005/7/30/interviews/26221-myst-v-end-of-ages-developer-qa-2/" target="_blank" rel="noopener">“‘Myst V: End of Ages’ Developer Q&amp;A #2”</a>, Worthplaying, July 30, 2005. The answers are signed “RM”: “players can write anything they want on the Slate, although only certain commands will be registered by the system and recognized.”&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
<li id="fn:2">
<p>ddb174, <a href="https://forum.guildofwriters.org/viewtopic.php?p=35673#p35673" target="_blank" rel="noopener">“Re: Converting Myst 5”</a>, Guild of Writers forum, September 8, 2009, in a thread about Drizzle, a tool that converts the Ages of <em>Myst V</em> to run in <em>Uru</em>. The post explains why the puzzles of the converted Ages cannot be played and says the slate “uses a simple perceptron ai to recognise symbols”.&#160;<a href="#fnref:2" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
<li id="fn:3">
<p>Yann LeCun and colleagues, <a href="https://papers.neurips.cc/paper/1989/hash/53c3bce66e43be4f209556518c2fcb54-Abstract.html" target="_blank" rel="noopener">“Handwritten Digit Recognition with a Back-Propagation Network”</a>, 1989. The team tested its reader on handwritten digits supplied by the US Postal Service.&#160;<a href="#fnref:3" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
</ol>
</div>
]]></content:encoded></item></channel></rss>