الانتقال إلى المحتوى

Lesson 18: Electronic dice

English

Roll without a dice

  • A board game needs a dice, but you lost it. The Arduino can be one.
  • Six LEDs show the number: 1 LED for a one, all 6 for a six.
  • A button rolls, and random picks the number, so nobody knows what comes next.

Words for this lesson

Word Meaning
dice a small cube with the numbers 1 to 6 for games
roll throw the dice to get a number
random you cannot say before what it will be
function a named block of code you can use many times, like show(n)

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP