pxt-calliope/olddocs/lessons/game-of-chance.md
Tom Ball f4eca66648 move lessons out of web site
will move select lessons back to "educators" section
2016-06-14 11:49:58 -04:00

32 lines
780 B
Markdown

# game of chance blocks lesson
create an answering machine on the BBC micro:bit
## Topic
Game Library
## Quick Links
* [activity](/lessons/game-of-chance/activity)
* [challenges](/lessons/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
```cards
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