1 of 8

Write a list of instructions to solve this maze

You are the red arrow and must get to the gold block

2 of 8

Small basic

  • Small basic is a textual language which means we write the code instead of using blocks.

Blocky programming

Textual programming

3 of 8

Toolbar – lets us save, open and create new files

4 of 8

Run button – will execute (run) the code

5 of 8

Page – this is where we write our code. As we type we will get suggestions for code.

Right window – This gives us more information about the code

6 of 8

Our first program

  • What shape do you think we will draw with this code?

  • Write it yourself and run it to see if you were right.

7 of 8

Result

  • Move – How many steps forward you would like the turtle to move

  • Turn Right – will turn right 90 degrees

  • Turtle – Is the name of the CLASS we are using. Think of a class as a list of special instruction that only the turtle can use

8 of 8

Other instructions

Turtle.Move()

Turtle.TurnLeft()

Turtle.PenDown()

Put the pen down so the turtle will leave a line

Turtle.PenUp()

Lift the pen so the turtle can move without leaving a line

Turtle.moveTo(100, 100)

Moves the turtle to coordniates (100,100)

GraphicsWindow.penColor = “Red”

Changes the pen colour to red