Pencil code program: Chaos game

The ‘chaos game’ is a way to see how patterns can result from certain random events. Use this program to run the ‘chaos game’, randomly moving the turtle to create a pattern (for more information, search 'chaos game’). Have students analyze or fill in or change parts of the pencil code program.

Additional details

Year band(s) 7-8
Content type Lesson ideas
Format Web page
Technologies & Programming Language​s other programming languages
Keywords Pencil Code, Programming, Chaos, Chaos game, patterns, random, random events, analysis, code, pattern recognition, abstraction, function, functions, functionality, Computational thinking, Logo, Turtle, Text programming, Algorithms, Geometry, Google, Google for Education, Education, GoogleCT
Integrated, cross-curriculum, special needs Mathematics



Creative Commons Attribution 4.0, unless otherwise indicated.