Notion - Update docs

This commit is contained in:
shiffman 2024-02-26 16:32:36 +00:00 committed by GitHub
parent ce687204dd
commit 0543318516

View file

@ -99,7 +99,7 @@
<p>Next, the walker takes the appropriate step (left, right, up, or down), depending on which random number was picked. Heres the full <code>step()</code> method closing out the <code>Walker</code> class:</p>
<div class="snip-above">
<pre class="codesplit" data-code-language="javascript"> step() {
// 0, 1, 2, or 3. The random choice determines the step.
//{!1} 0, 1, 2, or 3. The random choice determines the step.
let choice = floor(random(4));
if (choice === 0) {
this.x++;