Fortune Teller — Notes for Club Leaders


In this project, children will learn how to make use of selection, by making a ‘fortune teller’. The fortune teller will work like a magic 8-ball, and will give the user the answer to a question they ask the micro:bit.


For this project, the MakeCode (PXT) microbit editor should be used.

You can find a completed version of this project at, and the compiled .hex file can be downloaded by clicking the ‘Download Project Materials’ link for this project, which contains:

  • FortuneTeller.hex

Learning Objectives

  • Selection if blocks;
  • The random block.

This project covers elements from the following strands of the Raspberry Pi Digital Making Curriculum:


  • “Multiple answers” - Consolidating use of if blocks, by adding ‘No’ and ‘Ask again’ answers.
  • “Shake your micro:bit” - Shake the micro:bit instead of pressing a button.