Self Avoiding Walk

by Schmams
  scripts
  sprites
See inside
Instructions

This is a variation in a random walk simulation.

Default starting location is in a corner. Press space to run simulation from random spot.

Here, the computer randomly moves North, West, East or South as long as it doesn't go outside the box or return to any previously visited spot.

Notes and Credits

Update: Reworked code to fix bug in turbo mode. Also reset record!

This is really just like a random game of "Snake", but has applications in things like chain polymers and solvents.

Check out my other project on random walks!
http://scratch.mit.edu/projects/11463731/

Shared: 17 Jul 2013 Modified: 12 Aug 2014
Favorite this project 8
Love this project 8
Total views 322
View the remix tree  1
  
More projects by Schmams