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 |
| Australian Curriculum Digital Technologies code(s) |
AC9TDI8P05
Design algorithms involving nested control structures and represent them using flowcharts and pseudocode
AC9TDI8P06
Trace algorithms to predict output for a given input and to identify errors
AC9TDI8P09
Implement, modify and debug programs involving control structures and functions in a general-purpose programming language |
| Technologies & Programming Languages | 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 |
| Organisation | ESA |
| Copyright | Creative Commons Attribution 4.0, unless otherwise indicated. |
Related resources
-
Crack the code - Technology Mandatory
A unit of work that develops knowledge, skills and understanding of coding
-
Python language
Students develop and implement digital solutions using Python programming language through applying data types and control structures.
-
Emerging technologies
Students follow a problem-solving process to develop an idea for applying emerging technologies to improve existing digital systems.
-
Social media age restrictions hub
Information about social media age restrictions.
-
Rewrite Your Story
Videos based on real-life examples of cyberbullying prompt discussions about young people’s experiences.
-
Superhighways used for millennia
In this lesson, students compare physical networks (wired and wireless) to the ancient network related to First Nations Peoples’ trading practices throughout history, including trade routes.
-
Computational thinking poster
A poster/infographic that gives a brief overview of the concepts related to computational thinking.
-
App Inventor EDU
Use this six week teaching program using a project based curriculum that allows students to explore the world of computer science through the creation of smartphone apps.