Skip to content
Nawaf Abdullah edited this page Feb 16, 2019 · 3 revisions

The class Walker, contained in the script walker.py, allows the user to simulate a random walker, which can self-avoid, in 2D or 3D.

Usage Example - 2D:

# Example of 2d random walker
jon = Walker()
jon.walk_2d(100)
jon.plot()

kanye = Walker()
kanye.saw_2d(100)
kanye.plot()

Usage Example - 3D:

sierra = Walker()
sierra.walk_3d(100)
sierra.plot()

emma = Walker()
emma.saw_3d(100, False)
emma.plot()

Clone this wiki locally