2016-03-25 16:47:20 -07:00
# game of chance blocks lesson
2016-11-01 10:42:42 -07:00
create an answering machine on the @boardname @
2016-03-25 16:47:20 -07:00
## Topic
Game Library
## Quick Links
2016-04-13 08:27:45 -07:00
* [activity ](/lessons/game-of-chance/activity )
* [challenges ](/lessons/game-of-chance/challenges )
2016-03-25 16:47:20 -07:00
## 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
2016-04-04 22:33:13 -07:00
```cards
2016-03-29 15:59:00 -07:00
game.gameOver()
basic.showString("Hello!")
2016-04-04 22:33:13 -07:00
input.onButtonPressed(Button.A, () => {})
2016-03-29 15:59:00 -07:00
```
2016-03-25 16:47:20 -07:00
2016-03-29 15:59:00 -07:00
## Objectives
2016-03-25 16:47:20 -07:00
2016-03-29 15:59:00 -07:00
* 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