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
-
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.
-
Classroom ideas: Micro:bit Environmental Measurement (visual and general-purpose programming) (Years 5-8)
Investigating environmental data with Micro:bits: This tutorial shows the coding needed for digital solutions of some environmental issues that can be created using pseudocode and visual programming.
-
Classroom ideas F-10: Aboriginal and Torres Strait Islander connections to Digital Technologies
This resource provides examples of ways Aboriginal and Torres Strait Islander Histories and Cultures can be integrated into Digital Technologies. Examples include 'classification and sorting data' and 'designing solutions'.
-
Computational thinking poster
A poster/infographic that gives a brief overview of the concepts related to computational thinking.
-
Creating a digital start line and finish line with micro:bits (Years 7-8)
The following activity suggests one-way Digital Technologies could be integrated into a unit where vehicles are being designed and produced.
-
Computational Thinking – 6 learner guides
This site offers a range of resources to help teach computational thinking and its components.
-
Working with data
This site explains what a database is and where it is that they can be used.
-
Developing user stories
These teacher slides can be used to introduce and develop understandings about user stories and how to write a user story based on a users needs and goals. In this set of slides we use several examples to illustrate the format of a user story.