SD3 2
SD3 2
Ensino Fundamental
6° e 7° Anos
Learning Goals
Let’s Start
Student’s material
Useful words
Maze – labirinto
Variables - variáveis
Introduction
Hello students, welcome back to the Coding meeting!
In last meeting, we will learn about the four basic mathematical operations - addition, subtraction, multiplication
and division. Today we will create a Mathematical Maze in Scratch!
Let's check the objectives of the day by clicking on the topics below:
Objectives
1. Rewind: what have I learned? Take a look at your Coding Documentation.
2. Understand how the mathematical operators work in a Scratch Maze.
3. Train and apply mathematics in Scratch.
4. Create a maze!
Instructor’s material
Learning Time
Student’s material
Introduction
In the last meeting we created a calculator. And now, how about we create a game with mathematics?
To accomplish this, we need to understand the concept of variables. It comes from math, but it's very useful in
coding!
https://youtu.be/Faq61vWOr1Q
To use variables, look at variable menu. There are a lot of new commands!
With the variables we can, for example, "understand" things that the player types during the game.
Useful words
understand - entender
variable - variável
types - escrever
hide - esconder
set - atribuir, dar valor
show - mostrar
change - mudar
https://youtu.be/wS1QETPfgGE
Move on to the next page to checkpoint task!
Do it with attention because it will count on your grade.
Instructor’s material
Today's Learning Time will continue with math commands, introducing the “variable” structure.
Round 2: while the students do the Learning Time activities, go around the tables helping with possible
questions.
Estimated time: 30 minutes
Checkpoint
Student’s material
1. What is the final value of the variable "counter" after running the following code in Scratch?
set counter to 0
repeat 4 times
change counter by 3
a) 0
b) 3
c) 9
d) 12
The correct answer is d).
3. What is the result of the mathematical operation between the variables "x" and "y" in the following code in
Scratch?
set x to 9
set y to 4
set result to x / y
a) 0.25
b) 2.25
c) 2.5
d) 3
The correct answer is b).
4. What is the name of the control structure that allows a block of code to be executed only if a condition is true in
Scratch?
a) repeat
b) forever
c) if...else
d) wait until
The correct answer is c).
Instructor’s material
At the end of learning time, use the quiz to check students' understanding of the topics studied during today's
meeting. This checkpoint also picks up on some conditional and math commands from the previous encounters.
Round 3: use this moment to go through the tables and verify that the students are doing the activities.
Estimated time: 15 minutes
Training Time
Student’s material
Tip: Naming the variable accurately and descriptively is recommended so that it is easy to understand what type
of information it will be storing.
Note: Select For all sprites if you want to create
If you choose For this sprite alone, the variable becomes local, meaning you may alter or modify it from the sprite
on which it was generated. Global variables, on the other hand, can be accessible from any sprite or background in
your project.
Tip: Select the score, to display it on your game.
Setting the score to 0 when the new game begins is recommended. To accomplish this, add set my variable to 0 at
the start of the script.
Script Area Stage
Depending on the condition, the score can be increased or decreased using a change variable by one block.
For example, if we want that whenever our sprite touches the green color the score should increase by 10, and it
Tip: Using forever here is important to keep checking the conditions again and again!
Conclusion
Congratulations! You just discovered a simple method for setting up a score variable in your game.
Instructor’s material
Training Time activities involve a mix of activities to train all Scratch’s commands, including variables. This will
be useful to understand the mission.
Remind students about the importance of completing the Coding Documentation.
Round 4: encourage students to do activities. Use this moment to walk around the tables, check if students are
doing the activities and solve questions.
Estimated time: 20 minutes
Today’s Mission
Student’s material
Objective: go to the editor and create the a code with the rules below.
1. Open Scratch and create a new project. Select a character for your game or create a new one.
2. Use the sketch pads to create the maze. To do this, click on the "Draw" icon at the bottom of the screen. You can
draw the maze walls using straight and curved lines.
3. Add keyboard arrows to allow the character to move through the maze. To do so, click on the "Events" icon and
select the "When the [ ] key is pressed" block. Add a movement block to move the character in a specific direction
when the corresponding key is pressed.
4. Create math questions using text and variable blocks. You can create a variable to store the correct answer and
generate a question using blocks of text. For example, "What is the result of 10 + 5?". To do so, click on the
"Variables" icon and select "Create variable". Then drag and drop the "Set [variable] to [ ]" and "Ask [] and wait"
blocks. Under "Ask [] and wait" type the question.
5. Use the conditional blocks to check if the player's answer is correct. To do this, click on the "Control" icon and
select the "If [ ] then" block. Inside the block, check if the player's answer is equal to the correct answer. If the
answer is correct, move the character to the next intersection in the maze. If the answer is incorrect, the player
must answer another question.
Extras!
6. Add a scoring system to track player progress. To do this, create a variable to store the score and increase the
player's score by one point each time he answers a question correctly.
7. Create multiple levels with mazes and more difficult math questions. To do this, create new mazes and questions
using the same steps as above. Each level must have a minimum number of questions that the player needs to
answer correctly to advance to the next level.
8. Add animations and sound effects to make the game more fun. To do this, click on the "Sound" icon and select a
sound you want to add to the game. Click the "Events" icon and select the "When [sound] is played" block to make
the character jump or do some other type of animation.
Instructor’s material
Student’s material
<slide básico para o submit and clean up, contendo as instruções de inserção de link e de arrumação do ambiente>
Instructor’s material
In the next section, Submit & Clean Up, if the student clicks on “iniciar tarefa”, this menu will appear and it’s just
paste the code on URL blank space:
The teacher, with the help of the monitors, must check if all the students posted their Today’s Mission link
in the Coding Documentation file.
There is a unique slot in each encounter to be filled with this link.
This correction will not be part of the final grade, it will only be useful to help the teacher understand which
students are having more difficulties.
Estimated time: 15 minutes