How to organise your code

Slides:



Advertisements
Similar presentations
Key Stage 3 ICT Lesson 2 - Programming. Starter Start Kodu. Re-familiarise yourself with how it works. Play some of the pre-made games. Try and change.
Advertisements

Level 3 Extended Diploma Unit 22 Developing Computer Games
Bug Session Two. Session description In this session the use of algorithms is reinforced to help pupils plan out what they will need to program on their.
SELECT A LESSON 1. A WORLD AND CHARACTERS 2. PATHS AND ENEMIES 4. USING PAGES TO CHANGE THE RULES 5. GAME ANALYSIS AND DESIGN 6-7. CREATING YOUR OWN GAME.
The Scratch Calculator You are all going to be real computer programmers!!!
Testing and Assessment Games Programming in Scratch.
Algorithms In general algorithms is a name given to a defined set of steps used to complete a task. For example to make a cup of tea you would fill the.
Python Programming Introduction to programming using python.
By the end of this session you should be able to...
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
My Python Programmes NAME:.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Cloning and creating! Introduction to cloning and creating objects.
1. Design: Plan in detail Look at the two images below. One is a design and one is the final product. The examiner needs to see your designs AND your final.
Networks Connectivity. Objective Learn the meaning and significance of bandwidth Understand what is meant by buffering.
 This is an online tool that one can use to share with multiple users either by saving and printing their creation or sending the link to someone else.
PYTHON PROGRAMMING Year 9. Objective and Outcome Teaching Objective Today we will look at conditional statements in order to understand how programs can.
Study Skills and Revision Techniques
15/05/16 Symbolism TP: Understand what symbolism is
CS170 – Week 1 Lecture 3: Foundation Ismail abumuhfouz.
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
How can we tell which portions are the same amount?
Randomising the behaviour of Sprites
IF statements.
Presented by: First Last
Explain what touch develop is to your students:
Learning to program with Logo
Lesson 1 Learning Objectives
Investigation How to write it up.
Completing the tasks for A452 with….
Computer Science and an introduction to Pascal
What can we learn from careful reading of an image?
Fill the screen challenge!
Introduction to pseudocode
Create and Analyze Bar Graphs
The Scientific Method:
Learning Outcomes –Lesson 4
Escape sequences: Practice using the escape sequences on the code below to see what happens. Try this next code to help you understand the last two sequences.
Lessons in a shoe box – a simple tool for extending the G&T student
What can we learn from careful reading of an image?
HAPPY NEW YEAR! Lesson 7: If-statements unplugged
Basic Sine Rule Question
COMPUTER PROGRAMMING PYTHON
Computer Science Testing.
Family. Family Family What is a family? There is no fixed recipe for a family; just a group of people who love and care for one another. Love and care.
Playing Games.
Learning Intention I will learn about programming using selection (making choices) with one condition.
Ask yourself these questions to help you understand what you read:
Text Structure English 7 & 8.
PYTHON: BUILDING BLOCKS Sequencing & Selection
Explain what touch develop is to your students:
Flowcharts and Pseudo Code
Brackets Working with Brackets.
Explain what touch develop is to your students:
Why Does Our Mind See Illusions?
Lesson Objectives By the end of the lesson you will:
What is, and is not, considered scientific
Why Does Our Mind See Illusions?
Text Structure English 7 & 8.
Year 1 Phonics Screening
creating a ecosystems model in net logo
Introduction to Python programming for KS3
Why Does Our Mind See Illusions?
Flexible thinking We are learning to understand that people may say things that mean something different from what we thought they meant We are learning.
Open Power Point.
Revision techniques or are you a self manager?
Positive Emotions Lesson 7 Ingredient 4 Rainbow Moments.
Primary School Computing
Teacher ONLY slide Slides 2 – 6 Recap from the previous lesson
Your Project Title (It is YOUR project, not the team's project, not CAM2) Your Name Date.
Presentation transcript:

How to organise your code Pages and selection How to organise your code

Objective Understand what is meant by the term selection Learn how to create pages so that you can pick different behaviours in your game.

What does sequence mean? Having a look at this picture, what do you think sequence means? Why do you think we would ask you what this means in computer programming? We’re trying to get our students to understand that sequences are done in a specific order. They are carried out one after the other. When we want to make them more advanced we use something called selection.

What does sequence mean? Having a look at this picture, what do you think sequence means? Why do you think we would ask you what this means in computer programming? We’re trying to get our students to understand that sequences are done in a specific order. They are carried out one after the other. When we want to make them more advanced we use something called selection.

What does selection mean? Selection allows your code to do things based on choices. Our first lines of code use simple selection “When this happens do this” Look at the first line. When bump into apple…. Do eat We can make it more advanced by using pages. We’re trying to get our students to understand that sequences are done in a specific order. They are carried out one after the other. When we want to make them more advanced we use something called selection.

Try using an indent and show evidence of it. Advanced selection? To save yourself from having to re do the bump apple, time after time, we can say ‘IF’ the first line occurs….. Do everything underneath which is indented. See the diagram Notice the indent…. Try using an indent and show evidence of it.

Organise your code… It’s better for programmers to know what is going on with their code. If you split things up over pages you can see where your problem occurs: The program below shows that something else is going to happen which is on page 2. I now know that any errors occuring could be found on page 2.

Tinker Time We do not want you to break the game / world you’ve already started. This is experimental time. Can you do the following and get snippets of your code. Print screen some basic sequences and explain what a sequence is. Explain what ‘selection’ is and demonstrate it through a piece of code. This should be in the same document. Try some advanced selection using indent and explain if it worked or not. If you had problems you can document the work. Challenge – Can you make use of pages to make your game more organised. For example, lives could be found on page 2.

Game continuation: - Use your initial plan and start building your game. You must show your teacher printed evidence of: Sequences Selection Advanced Selection Advanced selection with pages (Challenge)

Activity Teacher lead activity Ask pupils if they think they know what pseudo code is. Get them to think about some of the actions which are likely to take place within their game. They will need to write out some code in structured English in the next lesson.