0% found this document useful (0 votes)
25 views

Code.org SessionPlan#10(1 4)

Uploaded by

mzmegastorm
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Code.org SessionPlan#10(1 4)

Uploaded by

mzmegastorm
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

CODE .

OR
G
Lesson 10:
MINECRAFT
WARM UP
Hello, How are you? Do you remember what did we learn in the last class?
Ok Let us revise the concepts, (Explain the terms once again as a small Summary
of the previous class.)
Very Good!! so we have revised everything from the last class. Now let us start
with a new topic today ok?
Before that, Do you remember we have studied about the Input Process Output
concept?
(explain to the student how the input - process and output scenario works for
the above examples)
So did you understand how the input and output process works?
Ask the student to give some examples in real life. (books - study - exams, trees -
process - paper, etc)
So now that you know about the input-output process lets go ahead a step
forward.
FUNCTIONS

We can apply the IPO (input-output) in many occasions.


Once such occasion where we use it is called FUNCTIONS in coding. So what are
functions?
Function is something that takes in a set of inputs and process it and give out an
output.
So what is the relation between IPO and Functions?
We have seen many examples for IPO until now. All those are functions.
Let us consider example where the mobile is the function as it makes takes sounds,
process it and sends the output to the earphones.
Another one is When you want to make a cake the batter is the input, The oven is
the function and the output is the cake that we eat. Can you tell me all the
remaining functions in the examples like that?
(help the student to finds out what are the functions in few other examples)
FUNCTION
Advantages of Functions
1.One function can be used many times in different places
2.Functions can be used to make the program easier and smaller. Break
a big problem into small parts
3.Reduce the mistakes
4.Changes can be done easily
5.Keeps your code DRY (Don't Repeat Yourself)
So if you see when you have to draw multiple squares, circles or
triangles and if you create a function that gives an output of drawing a
square, circle or triangle, it reduces our effort to write the multiple lines
of code. We can just keep using the Create square, Create circle or
Create triangle Function as many times as we want.
Since we divide the problems and solve them the chances that we make
mistakes also will be low.
Let Us see how functions can be used for solving few puzzles.
BEE PUZZLES

Function (Puzzle 7)
https://studio.code.org/s/course2/lessons/6/levels/2
FUNCTION PUZZLES
Puzzle 2 https://studio.code.org/s/course3/lessons/6/levels/2
FUNCTION PUZZLES
Puzzle 4
FUNCTION PUZZLES
Puzzle 6
MINECRAFT
Have you ever heard of Minecraft? So it's a game where you have to
build and explore. So today we are going to see how we can play the
Minecraft game using the coding concepts that we have learnt until
now. Do you know that there are two characters in Minecraft and you
can choose whomever you want. Since you know all the coding
concepts how about you try solving and I will help you to complete
them. No Yes!
MINECRAFT PUZZLES
LINK: https://studio.code.org/s/hero/lessons/1/levels/1
MINECRAFT PUZZLES
Here, can you see a green block? tell me what is the
name of the Green Block?
Puzzle 8 build bridge
Good!! that is right!
This Build Bridge is a function.
There is a function which is having a complete code to
make one bridge.
In this puzzle we will use this function to build bridges
whenever required.
Instead of writing whole code of building a bridge we will
only reuse the function that is already made.
MINECRAFT PUZZLES
Puzzle 9:
Here we are using another function named
Clear Path.
inside the function clear path.code for
destroying a block and placing gravel instead o
wall is already written.
So, these particular commands are not to be
written again and again. instead we can call the
function again and again wherever required.
MINECRAFT PUZZLES

Puzzle 11:
HOMEWORK

Q.1: Minecraft Aquatic solve all the puzzles:


https://studio.code.org/s/aquatic/lessons/1/levels/1

Q.2: Minecraft Aquatic project. Create your own story.


Login code.org
How it works
click on Remix
https://studio.code.org/projects/minecraft aquatic/-ZEM
FxBSvGKMCun4EVqx0k-gRcIza3BSIa6608-yZmU/edit
WRAP UP
Okay, so here we come to the end of the session. Congratulations!
You did very well in the class today.
How about we revise what we studied today?
•So did you have fun solving puzzles using nested loops? What did
you enjoy most in today’s class?
•What concepts did we use in Minecraft today?
•What is a function?
•What is meant by Keep your code DRY?
VERY GOOD SO WE WILL TRY TO LEARN MORE AND MORE ABOUT
CODING IN THE UPCOMING CLASSES HAVE A GREAT DAY!
THANK YOU

You might also like