logo

Drunkard's Walk

Overview

An interactive visualization of the "drunkard's walk" (random walk) algorithm—a classic probability simulation where a "walker" takes random steps and leaves a trail. Created in JavaScript with p5.js in the fall of 2017 for Interactive Design and Algebra Problem Solving III.

What I Did

Implemented the random walk logic and real-time canvas rendering. Each click spawns a new walker that moves in random directions, building visible paths that illustrate probability distributions and emergent patterns. Used p5.js for smooth animation and clean graphics.

Tools

JavaScript, p5.js

Drunkard's Walk visualization Check it out