Can I test an algorithm?

Can you create a simple algorithm on your whiteboard to reach 1, then 2?

Keywords
CodeIn computer programming, code is (generally speaking) instructions that the computer follows to do something.
SyntaxRules that apply to writing a specific language.
DebuggingIn computer sciencedebugging is the process of finding (and correcting) errors in a computer program.

Use the commands:

F = forward,   Rt = Right turn, LT = Left turn

How can you record this algorithm?

Can your partner follow it?

Practical Challenge

Can you use a Beebot and a mat to set a challenge for your partner?

Place a marker on the Mat and see if your partner can write an algorithm on their whiteboard to reach that square?

Test it and debug if necessary, then swap places.

Plenary - We are beginning to think in CODE!

F = forward, Rt = Right turn, LT = Left turn

What does this code mean?

F3 Rt F4 Lt F1 Lt F10

Success Criteria 

I can plan an algorithm

I can input my commands

I can debug my algorithm

I can add sections to my solution

I can use shortened syntax

You will need -

  • A learning partner
  • A set of cards to create your challenge
  • Space on a mat