Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 920 Bytes

game-of-chance.rst

File metadata and controls

42 lines (26 loc) · 920 Bytes

Lesson 4 game of chance blocks lesson

create an answering machine on the @boardname@

Topic

Game Library

Quick Links

.. toctree::
   :maxdepth: 4

   ./game-of-chance/activity
   ./game-of-chance/challenges


Prior learning / place of lesson in scheme of work

Learn how to creating a message with a game over to write your message. We will be learning how to create a message using show string and on button pressed.

Documentation

game.gameOver()
basic.showString("Hello!")
input.onButtonPressed(Button.A, () => {})

Objectives

  • learn how to use the game library
  • learn how to show a string on the LED screen one character at a time
  • learn how to use to register an event handler that will execute whenever an input button is pressed