Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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
2 Respostas
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. :)
0
help me please