r/processing • • Mar 28 '16

[PWC3] Random Walker

Hello Everybody, this is the third Weekly Processing challenge, the challenges are decided just to give you a prompt to test your skills so it can be as simple or as complicated as you have time to write! Start Date : 28-03-2016 End Date : 03-04-2016

Entries must be submitted with the [PWC3] In the Title of their post. Or post them in the comments here with the same tag.

This Weeks Challenge : Random Walker Here is a blog post giving a very basic intro and then climbing up into something quite complicated.

If you are here to learn feel free to ask for help in the comments below. Lay a brick perfectly every day and eventually you will have a wall, Joe

Winner from last week as decided by mods

Highest Voted : pflu

Interaction : pflu

Graphics : Freedom_Grenade

Accuracy : Introscopia

12 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Mar 28 '16

You would walk sqrt(2) times faster on diagonals. Moving forward takes as much time as moving forward and left/right.

1

u/Salanmander Mar 28 '16

You would walk sqrt(2) times faster on diagonals.

Yup, which is exactly what the linked post wants. It, in fact, calculates a longer r for r*sin(theta) in the case where (theta) is on a diagonal, specifically so that the random walker stays on a grid.