Visualizer for Random Walk
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
img
js
.gitignore
README.md
index.html

README.md

##Random Walk

Generates walkers that traverses the screen indefinitely, partaking in what is commonly known as "The Drunkard's Walk." Each walker has an equal probability of going North, South, East, or West for each step. Edges are set to be wrap around.

Table structure first found here and borrowed due to cleverness, checkout his "Game of Life": https://github.com/wrr/game-of-life-js/blob/master/life.js

Other than the table stucture, the rest of the code is mine and was an attempt to:

  1. Learn how to pass lots of objects into various other objects

  2. Learn how to animate in Javascript

  3. Make Pretty colors move

  4. Add the abiliy for a user to add or remove objects and control aspects of the object.

Menu on the top left allows the ability to create different colored walkers, remove the oldest walkers, change the walking speed, enter map mode (defaults to green and blue walkers and a clean slate) and clear the screen.

Enjoy.

alt text alt text