Fortune Teller

Introduction

Have you ever used a Magic 8 Ball to help you with a tough decision or asked a fortune teller machine to help you see the future? Well now you can turn CodeBug into your very own customised fortune teller.

In this tutorial we will get CodeBug to generate a random number and use it to select from a bunch of possible responses, such as "Yes" and “No”.

You will need
CodeBug CodeBug
Micro USB cable
Computer

18 Questions
  • 11

    How old are you lorrin @ Nov. 18, 2016, 4:30 a.m.

    • 100 — beau taipari @ March 2, 2017, 11:20 p.m.

    • 100 — beau taipari @ March 2, 2017, 11:21 p.m.

    • 7 — Riya Vasvári @ April 19, 2017, 6:04 p.m.

    • 12- — cfros34 @ May 18, 2018, 4:51 a.m.

    • 12- — cfros34 @ May 18, 2018, 4:51 a.m.

    • 12- — cfros34 @ May 18, 2018, 4:51 a.m.

    • 13 — Fatimah Faiz @ Aug. 10, 2017, 4:22 a.m.

    • 57 — Will Richardson @ Aug. 10, 2017, 11:50 p.m.

    • underaged — Ray Shi @ Aug. 24, 2017, 12:52 a.m.

    • Old enough to mount a monster cock — Brewmaster Kaif @ Aug. 24, 2017, 11:43 p.m.

    • 13 — Khushi Punjabi @ Sept. 7, 2017, 1:08 a.m.

    • 12- — cfros34 @ May 18, 2018, 4:51 a.m.

    • 12- — cfros34 @ May 18, 2018, 4:51 a.m.

    • Nunya — agrif-135 @ May 25, 2018, 3:56 a.m.

    • 69 — Ilia Ebrahimnejad @ June 4, 2018, 4:50 a.m.

    • 69 — Ilia Ebrahimnejad @ June 4, 2018, 4:50 a.m.

    • 69 — Ilia Ebrahimnejad @ June 4, 2018, 4:50 a.m.

    • 69 — Ilia Ebrahimnejad @ June 4, 2018, 4:50 a.m.

    • 69 — Ilia Ebrahimnejad @ June 4, 2018, 4:50 a.m.

    • 69 — will seckel @ July 20, 2018, 5:27 a.m.

    • 69 — will seckel @ July 20, 2018, 5:27 a.m.

    • 69 — will seckel @ July 20, 2018, 5:27 a.m.

    • 69 — will seckel @ July 20, 2018, 5:27 a.m.

    • 69 — will seckel @ July 20, 2018, 5:27 a.m.

    • 69 — will seckel @ July 20, 2018, 5:27 a.m.

    • 69 — will seckel @ July 20, 2018, 5:27 a.m.

    • 69 — will seckel @ July 20, 2018, 5:27 a.m.

    • 69 — will seckel @ July 20, 2018, 5:27 a.m.

    • 69 — will seckel @ July 20, 2018, 5:27 a.m.

    • 21 — Brayden Zylstra @ July 24, 2018, 5:15 a.m.


    ... cc3 @ Nov. 22, 2016, 3:32 p.m.

    11 Paige hamilton @ March 2, 2017, 11:19 p.m.

    12 madisosn brown @ March 2, 2017, 11:24 p.m.

    13 Syed Siddique Kaliyadan @ Aug. 9, 2017, 2:06 a.m.

    8 First name Last name @ Aug. 9, 2017, 2:14 a.m.

    10 violet raichura @ Oct. 1, 2017, 4:05 p.m.

    10 violet raichura @ Oct. 1, 2017, 4:05 p.m.

    9 forgandennyprimary @ Nov. 20, 2017, 2:33 p.m.

    14 Ivan Nicol @ Oct. 11, 2018, 3:58 a.m.

    14 Ivan Nicol @ Oct. 11, 2018, 3:58 a.m.

    13 imogen Tierney @ Oct. 31, 2018, 10:10 a.m.

    Answer this question:

  • lol Year 6 @ June 14, 2016, 1:24 p.m.

    • THIS IS AMAZING I LIKE YOU wqerg4 — YOMAMA_01 @ June 21, 2016, 3:42 p.m.

    • leo j @ July 22, 2016, 6:37 p.m.

    • lol — Will Richardson @ Aug. 10, 2017, 11:50 p.m.


    hi ZenoC @ Aug. 23, 2016, 5:01 a.m.

    Meh cc3 @ Nov. 22, 2016, 3:32 p.m.

    hi lol 6T17 @ Oct. 20, 2016, 9:13 a.m.

    hi lol hi sreyner @ Oct. 29, 2016, 6:28 p.m.

    LOL Paige hamilton @ March 2, 2017, 11:19 p.m.

    -1
    hi ZenoC @ Aug. 23, 2016, 5:01 a.m.

    Answer this question:

  • how did u make this — GGryffindor @ Jan. 7, 2017, 11:34 a.m.


    Answer this question:

  • Why are you wasting your time reading this comment......Why am I even writing this comment >=) Shubh Shah @ Aug. 9, 2017, 2:15 a.m.

    • Ur hilarious — Spicy Memes @ Aug. 10, 2017, 11:51 p.m.

    • Ur hilarious — Spicy Memes @ Aug. 10, 2017, 11:51 p.m.

    • no idea — CJS @ June 29, 2018, 9:03 a.m.

    • no idea — CJS @ June 29, 2018, 9:03 a.m.


    because your retarded Brewmaster Kaif @ Aug. 24, 2017, 11:48 p.m.

    Answer this question:

  • chuur gee Vishaan Bhardwaj @ March 29, 2017, 9:44 p.m.


    Answer this question:

  • What colour am I? Rachael BOURKE @ June 9, 2017, 2:50 a.m.

    • what colour are you — CJS @ June 29, 2018, 9:11 a.m.


    Answer this question:

  • WHAT COLOUR AM I? Rachael BOURKE @ June 9, 2017, 2:54 a.m.

    • a stupid negro — Brewmaster Kaif @ Aug. 24, 2017, 11:48 p.m.


    Answer this question:

  • england is my religon prominecraftpvp69 @ Sept. 7, 2017, 4:57 a.m.


    Answer this question:

  • england is my religon prominecraftpvp69 @ Sept. 7, 2017, 4:57 a.m.


    Answer this question:

  • what is your favourite colour cfros34 @ May 18, 2018, 4:53 a.m.

    • PINK — CJS @ June 29, 2018, 9:04 a.m.

    • PINK — CJS @ June 29, 2018, 9:04 a.m.


    Answer this question:

  • What is your best memory? maddie free @ May 24, 2018, 4:15 a.m.

    • with you at luna park on the airoplane — hannah hickson @ May 24, 2018, 4:16 a.m.

    • GETTING MY DOG KOLA — CJS @ June 29, 2018, 9:05 a.m.

    • GETTING MY DOG KOLA — CJS @ June 29, 2018, 9:05 a.m.

    • GETTING MY DOG KOLA — CJS @ June 29, 2018, 9:05 a.m.

    • GETTING MY DOG KOLA — CJS @ June 29, 2018, 9:05 a.m.

    • GETTING MY DOG KOLA — CJS @ June 29, 2018, 9:05 a.m.

    • GETTING MY DOG KOLA — CJS @ June 29, 2018, 9:05 a.m.


    Answer this question:

  • Whats your favourite food hannah hickson @ May 24, 2018, 4:15 a.m.

    • CHOCOLATE — CJS @ June 29, 2018, 9:05 a.m.


    Answer this question:

  • What is your best friends name? maddie free @ May 24, 2018, 4:28 a.m.

    • EBONY — CJS @ June 29, 2018, 9:06 a.m.

    • ELLIS — CJS @ June 29, 2018, 9:09 a.m.


    Answer this question:

  • i dont get it sorry CJS @ June 29, 2018, 9:03 a.m.


    Answer this question:

  • WHAT IS YOUR FAVOURITE DREAM CJS @ June 29, 2018, 9:07 a.m.


    Answer this question:

  • WHY ARE YOU READING MY QUESTIONS CJS @ June 29, 2018, 9:10 a.m.


    Answer this question:

  • WHY ARE YOU READING MY QUESTIONS CJS @ June 29, 2018, 9:10 a.m.


    Answer this question:

  • WHY R U READING MY QUESTIONS CJS @ June 29, 2018, 9:11 a.m.


    Answer this question:

  • -1

    deleted

    • hmmmmmmm — zian wang @ Aug. 20, 2018, 3:32 a.m.

    • hmmmmmmm — zian wang @ Aug. 20, 2018, 3:32 a.m.


    Answer this question:

  • Ask a new question:

Writing your program

To create your fortune teller, you will use the random number block and scroll text to answer a question.

Follow the tutorial below to create your program.


20 Questions

What next

Customise the answers with weird words to make your fortune teller seem more mystic.

You can add more answers by increasing the second value of the random block and adding more if-else conditions to your if block.

Design a fortune teller costume for your CodeBug and follow this guide to make it.


15 Questions
Back to top