Lompat ke konten

Lesson 9: Colour tiles

English

Colours on the floor

  • The down eye looks at the floor under the robot. down_eye.detect(GREEN) is True on a green tile.
  • It knows RED, GREEN, BLUE and BLACK.
  • location.position(Y, MM) tells you where the robot is: how far up (Y) or right (X) from the middle.

Words for this lesson

Word Meaning
detect find; detect(RED) is True on red
tile a coloured square on the floor
count a variable that goes up by 1 each time
position where the robot is, in mm

Masuk atau buat akun

IGCSE, A-Level & AP