Tuesday, November 19, 2019

100 Days of Github. Take 2, Day 32.

Day 32

The chaos games on a square continue.

The rules are:
Take a square with vertices labelled 1, 2, 3, and 4.
Start with a random point inside the square.
Toss a 4-sided coin with sides corresponding to vertices of the square.
Based on the coin toss, move halfway closer to the chosen vertex.
Repeat, making sure that the subsequent coin toss must not correspond to the vertex directly opposite the previously chosen vertex.

And voila:




The notebook is here.

---
Uploads remaining: 68
Days remaining: 42

Ideal rate of uploads: 1 upload per 0.62 days. Or, 1.62 uploads/day.

No comments:

Post a Comment