Sierpinski's Game

See inside

Click three times on the stage to set the three points of a triangle. The program continues from there. You can shift-click the Green Flag to engage Turbo Mode to make the drawing happen faster.

The rules of Sierpinski's "Game" are this:
1) A drawing dot starts at one of the points.
2) Randomly select one of the triangle's three points.
3) Move the drawing dot halfway to that point.
4) Make a dot where the drawing dot is.
5) Go to step 2.

If you keep doing this, eventually a Sierpinski's Triangle is formed.

Notes and Credits

Learn to program games with this free online Scratch course:

Shared: 1 Oct 2015 Modified: 16 May 2018
Favorite this project 6
Love this project 8
Total views 250
View the remix tree  5
More projects by AlSweigart