Chaos game challenge | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Chaos game challenge

The  Chaos Game is an algorithm for generating a fractal:          * define the n vertices of a regular polygon;     * choose an initial point, (x_0, y_0) at random within the polygon;     * generate a sequence of points, starting with (x_0, y_0), where each point is a fraction r of the distance between the previous one and a polygon vertex chosen at random.       with your own Python code for the above algorithm using NumPy and Matplotlib, to explore the Chaos Game for different values of n and r and pres

2nd Jan 2018, 7:40 PM
bader
2 Answers
0
This is interesting and I'll try it out. Unfortunately SoloLearn Code Playground doesn't support Matplotlib so I'll end up making this in Jupyter Notebook. I'll save the code to a pastebin and send it over when I finish it. :)
2nd Jan 2018, 7:52 PM
Giancarlo Forero
0
help me please
8th Jan 2018, 2:36 PM
bader