Activity2

tellTarget

Although this code is references movie clips in the stage, we should start with target and {tellTarget} code to explain the mentality of coding.

In every programme writing, there must be a “target” that is why we use coding to tell it what to do.

This target;

  • Not be able to think and decide
  • Do anything we tell
  • Be able to understand only when commands are clear, sharp and short.

 

Making a practice in the classroom;

our target is “me”

target==me

 

why double “==” ? Basically , because “=” is already a math symbol and represents value equality. We use it in arithmetic. To become clear, we create another symbol to use in coding and our target doesn’t look for numbers only. So “==” is good.

 “=” is an Assignment Operator it is used to assign the value of variable,  “==” is an Equal to Operator and it is a relation operator used for comparison.

Study in the classroom

 

We have a classroom as a stage and there will be a drama playing (movie clib) in the middle of the classroom. We control and command that target with commands.

We  draw an A point on the floor and chose a pupil as a target.This pupil act like a robot.  And we write command on the board

tellTarget

go to A

stop

We must use “stop” at the begining. In every each of action,  we have to use “stop” command. Otherwise, action goes on forever and run in loop.

 

 

 

The next step is, creating B point. We write command again

 

tellTarget

go to A

stop

go to B

stop

 

 

 

Even these codes and the activity seems very simple, many computer games created with these 3 codes. Anyway, making such a physical activity in the classroom, takes pupils interest and they would like to be robots as well. Therefore we start here “coding and robotic” both.

 

The most important part is courage pupils writing codes. They will love it especially when they see what they can do with these commands. Coding is fun, but you have to write it.

 

Now, it’s time to discuss in the classroom.

 

What is in our pocket?

A target which goes A to B

And instead of writing it again and again many times, with the help of our “buddy” math lesson, we are able to make it loops as much as we want. Such as

 

tellTarget

go to A

stop

go to B

stop

x100

or we simply delete the last command “stop” and the loop goes on forever.

 

tellTarget

go to A

stop

go to B

 

So the question of the study is, if we change the target what we will have in real life.

 

target==

 

 

and more….. we can give many examples.