Chaos game is a mechanism for generating an approximation of a fractal. You determine the vertices of a polygon, and then randomly generate a point inside of that polygon.

For an arbitrary number of steps, you move the point halfway between its current location and a randomly chosen vertex. That point is colored in, and you repeat the process as much as desired. Some chaos games, known as restricted chaos games, have requirements for a randomly chosen vertex's relation to the previous one.

**Chose the number of sides, and enumerate the permitted vertex offsets.**

For example, to play the chaos game with a triangle that can't repeat a vertex, enter "3" for the number of sides, and "[1, 2]" for the vertices.