It is possible to generate a fractal with a simple game


Question: It is possible to generate a fractal with a simple game, named the chaos game. It is basically a dot drawing game where dots are plotted according to some simple rules. All you will need is a dice (or a random number generator). Plot (draw) three dots forming an equilateral triangle and a fourth dot in any random place within the triangle. This fourth dot is the starting point. Take a dice and roll it. If the top face is 1 or 2, draw another dot half way from the starting point to the first point. If the top face is 3 or 4, draw another dot half way from the starting point to the second dot. If the top face is 5 or 6, draw another dot half way from the starting point and the third dot. The new point becomes the new starting point, and the whole process iterates. Implement an algorithm to play the chaos game for no less than 5,000 plays, and print the fractal it generates. Is it familiar?

Request for Solution File

Ask an Expert for Answer!!
Computer Networking: It is possible to generate a fractal with a simple game
Reference No:- TGS02264130

Expected delivery within 24 Hours