Перейти к содержанию

Lesson 28: Reaction duel

English

Who is faster?

  • A reaction duel is a game for two: wait for the GO light, then press your button as fast as you can.
  • The GO light comes on after a random wait, so nobody can guess the moment.
  • The Arduino checks the buttons thousands of times a second, so it always knows who was first.

Words for this lesson

Word Meaning
duel a fight or game between two people
false start starting before the signal
random(a, b) a number from a up to b − 1, different each time
break leave a loop at once

Войти или создать аккаунт

IGCSE, A-Level & AP