Coding Book 1 February 21
Contents 3 5 9 11 13 15 17 19 21 23 25 27 29 31 33 34
Blue-Bot Parts and Buttons Blue-Bot Mats Interface Guide Block Categories Paint Editor Make a car drive across a city Make characters dance Make characters run a race Make a character dribble a basketball Make a spooky forest Make the Sun set Make the Moon rise after the sun sets Make characters greet each other Make characters talk What do these programs do? Glossary and Index
1
Attitude Listen carefully to instructions
Look carefully at examples
Sherlock Show curiosity:
Give helpful help Pointing and talking
Hmmm! I wonder what this does?
Taking over and doing it
Memory
Learn from Mistakes
Work hard to remember these skills.
Mistakes are the proof you are trying.
Edgar Ferjennery
Miss Take 2
Blue-Bot Parts
Blue-bot’s eyes are used to provide some basic information: Solid Blue – connected via Bluetooth. Solid Red – Charging. Flashing Red – Low battery. Blue-Bot needs charging. Solid Green – Fully charged. 3
Blue-Bot Buttons
4
Shapes Mat Start on the red circle. Face the green square. Program the Blue-bot using these buttons:
Press Go. Which shape does Blue-Bot stop on? Make up a challenge for your partner to program Blue-Bot to go to either 1, 2 or 3 shapes.
Alphabet Mat Program Blue-Bot to visit the first letter of your first name. Program Blue-Bot to visit the first letters of your first and last names. Program Blue-Bot to visit all the letters in your name.
Make up a challenge for your partner to program Blue-Bot to go to either 1, 2 or 3 letters.
5
Money Mat Start on 1p. What is the shortest route to visit all 8 coins in order of value? Program a route to make 37p using the smallest number of coins. Program a route to make 169p using the smallest number of coins. Make up a challenge for your partner to program Blue-Bot to go to either 1, 2 or 3 coins.
Zoo Mat Start at the entrance. Visit the penguins, have an ice cream and then the pandas. Visit all the attractions in alphabetical order. Make up a challenge for your partner to program Blue-Bot to go to either 1, 2 or 3 attractions.
6
Treasure Island Mat Start and end at the ship. Program Blue-Bot to search for treasur in the: - waterfall - volcano - cave You must use the ladders and the bridges. What is the shortest route? How many of these three places can you program Blue-Bot to visit using one set of instructions? What is the shortest route?
Marketplace Mat Start and end at the fountain. Program Blue-Bot to buy: - bread - pies - flowers What is the shortest route? How many of these three places can you program Blue-Bot to visit using one set of instructions? Make up a challenge for your partner to program Blue-Bot to go to either 1, 2 or 3 market stalls. 7
Countryside Mat Start and end at the petrol house. Travel on the roads. Program Blue-Bot to visit: - scarecrow - sheep - woods What is the shortest route? How many of these three places can you program Blue-Bot to visit using one set of instructions? Make up a challenge for your partner to program Blue-Bot to go to either 1, 2 or 3 places.
Seaside Mat Start and end at the hotel. Travel on the roads. Program Blue-Bot to visit: - the lighthouse - the campsite - the funfair What is the shortest route? How many of these three places can you program Blue-Bot to visit using one set of instructions? Make up a challenge for your partner to program Blue-Bot to go to either 1, 2 or 3 places. 8
Scratch Junior Interface Guide
9
10
Scratch Junior Block Categories
11
12
Scratch Junior Paint Editor
13
14
Make a car drive across the city
15
- What happens if you change the number under the move right block? - How would you make the car go only half way across the screen? - What would happen if a wizard, or a dragon, or an elephant on the sidewalk? 16
Make characters dance
17
- Can you make other things happen, when one character touches another? (Try the disappear block) - How can you use the speed block to change how the characters move? 18
Make characters run a race
19
- What other programs can you make with a speed block? - If you cannot find the characters or background that you are looking for, paint your own! 20
Make a character dribble a basketball
21
- Can you make the cat shoot the ball into the basket? - What else can you make with two characters moving at the same time?
22
Make a spooky forest
23
- Add your own characters to make your own spooky scene! - Can you make the bat spin all the way around in a circle? - Can you tell a story set in a spooky forest?
24
Make the Sun set
25
- Can you make the animals disappear when the sun sets? - Can you add some animals to live in this park?
26
Make the Moon rise after the Sun sets
27
- Now that you know how to make new pages, can you make a project that has 3 pages, or 4 pages? - What happens when you drag a character from one page to another? 28
Make characters greet each other
29
- Why do you think the program repeats forever? - What could you change to have the program not repeat forever? 30
Make characters talk
31
- Can you add movement to this scene? - Now that you can send messages from one character to another, can you make a relay race?
32
What do these programs do? Match the numbers with the letters. 1)
2)
3)
4)
5)
6)
A) Turn right, turn left, go up, go down B) Walk then run C) Disappear, then reappear D) Turn right, turn left, go up, go down and then repeat E) Grow, shrink then go to outer space F) Hop twice, wait, hop again 33
Glossary
Index alphabet, 5 basketball, 15-16 block categories, 5-6 Blue-Bot, 3-8 car, 9 city, 9 countryside, 8 dance, 11 forest, 17-18 hop, 18 interface guide, 3-4 marketplace, 7 money, 6
Moon, 21-22 paint editor, 7-8 race, 13 resize character, 10 say, 24, 26 shapes, 5 seaside, 8 set speed, 14 Sun, 19-20 text, 18 treasure island, 7 zoo, 6 34
Can you write a program? Can you shorten your program? Can you predict what a program will do? Can you correct mistakes in a program?