diff --git a/content/00_randomness.html b/content/00_randomness.html index 5b0a084..914c739 100644 --- a/content/00_randomness.html +++ b/content/00_randomness.html @@ -99,7 +99,7 @@
Next, the walker takes the appropriate step (left, right, up, or down), depending on which random number was picked. Here’s the full step()
method closing out the Walker
class:
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++;