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

20 Questions
  • 13

    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.

    • 4 — Jasmine Wuu @ May 28, 2019, 11:47 p.m.

    • 4 — Jasmine Wuu @ May 28, 2019, 11:47 p.m.

    • 4 — Jasmine Wuu @ May 28, 2019, 11:47 p.m.

    • 4 — Jasmine Wuu @ May 28, 2019, 11:47 p.m.

    • 4 — Jasmine Wuu @ May 28, 2019, 11:47 p.m.

    • 4 — Jasmine Wuu @ May 28, 2019, 11:47 p.m.


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

    ... cc3 @ Nov. 22, 2016, 3:32 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:

  • 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.


    purple — EShen @ Aug. 27, 2019, 6:01 p.m.

    purple — EShen @ Aug. 27, 2019, 6:01 p.m.

    purple — EShen @ Aug. 27, 2019, 6:01 p.m.

    purple — EShen @ Aug. 27, 2019, 6:01 p.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:

  • How did you make this? Bug5 @ March 22, 2019, 2:53 p.m.


    Answer this question:

  • yes Ryan Park @ Sept. 9, 2019, 4:18 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:

  • -1

    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:

  • 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.


16 Questions
  • how do I get it to talk Coombe @ April 28, 2016, 5:58 p.m.

    • No se puede hacer que el error de código Talk — Code@Bug @ Aug. 7, 2016, 9:51 p.m.

    • You can only do it if you plug in a speaker. — Hannah Tjangdjaja @ Aug. 24, 2016, 9:27 a.m.

    • You can only do it if you plug in a speaker. — Hannah Tjangdjaja @ Aug. 24, 2016, 9:27 a.m.

    • what speaker? — sreyner @ Oct. 29, 2016, 6:30 p.m.

    • I dont now — CJS @ June 29, 2018, 9:06 a.m.

    • I dont now — CJS @ June 29, 2018, 9:06 a.m.

    • I dont now — CJS @ June 29, 2018, 9:06 a.m.

    • I dont now — CJS @ June 29, 2018, 9:06 a.m.

    • I dont now — CJS @ June 29, 2018, 9:07 a.m.

    • I dont now — CJS @ June 29, 2018, 9:07 a.m.

    • UMM — chelsea thompson @ March 21, 2019, 3:32 a.m.

    • UMM — chelsea thompson @ March 21, 2019, 3:32 a.m.


    beuase i can CJS @ June 29, 2018, 9:07 a.m.
    • hi — 011905 @ Aug. 31, 2018, 2:45 a.m.

    • hi — 011905 @ Aug. 31, 2018, 2:45 a.m.

    • hi — 011905 @ Aug. 31, 2018, 2:45 a.m.

    • hi — 011905 @ Aug. 31, 2018, 2:45 a.m.

    • hi — 011905 @ Aug. 31, 2018, 2:45 a.m.

    • hi — 011905 @ Aug. 31, 2018, 2:45 a.m.

    • ttytt]\tyt yt — kenta leonard @ Sept. 1, 2019, 11:13 p.m.

    • ttytt]\tyt yt — kenta leonard @ Sept. 1, 2019, 11:13 p.m.

    • ttytt]\tyt yt — kenta leonard @ Sept. 1, 2019, 11:13 p.m.

    • ttytt]\tyt yt — kenta leonard @ Sept. 1, 2019, 11:13 p.m.

    • ttytt]\tyt yt — kenta leonard @ Sept. 1, 2019, 11:13 p.m.


    yeh Courtney stalley @ May 24, 2018, 1:41 a.m.

    Answer this question:

  • will i die ratul kumbam @ Aug. 11, 2017, 12:11 a.m.

    • yes you will ratul kumbum — Ray Shi @ Aug. 24, 2017, 12:57 a.m.


    hopefully Brewmaster Kaif @ Sept. 8, 2017, 12:11 a.m.

    yes CJS @ June 29, 2018, 9:05 a.m.

    definetly chelsea thompson @ March 21, 2019, 3:33 a.m.

    gAYIFHFNIGGEREVNOD;JV imelyhooy.leymroklikw69 @ June 27, 2019, 4:33 a.m.

    gAYIFHFNIGGEREVNOD;JV imelyhooy.leymroklikw69 @ June 27, 2019, 4:33 a.m.


    yes yes kenta leonard @ Sept. 1, 2019, 11:03 p.m.







    Answer this question:

  • dfg# # PutneyHigh @ Feb. 3, 2017, 1:54 p.m.


    yes CJS @ June 29, 2018, 10:47 a.m.

    yes CJS @ June 29, 2018, 10:47 a.m.

    comment what chelsea thompson @ March 21, 2019, 3:32 a.m.

    Answer this question:

  • dfgh ratul kumbam @ Sept. 8, 2017, 12:10 a.m.


    Answer this question:

  • Will I meet my favourite actors. Grace Pata @ July 24, 2018, 1:32 a.m.


    no chelsea thompson @ March 21, 2019, 3:33 a.m.

    Answer this question:

  • how are u Courtney stalley @ May 24, 2018, 1:41 a.m.


    GOOD CJS @ June 29, 2018, 9:09 a.m.

    Answer this question:

  • 4 chodg111 @ May 24, 2018, 2:05 a.m.


    1 chelsea thompson @ March 21, 2019, 3:33 a.m.

    Answer this question:

  • 4 chodg111 @ May 24, 2018, 2:05 a.m.


    1 chelsea thompson @ March 21, 2019, 3:33 a.m.

    Answer this question:

  • what is ypur favourite colour CJS @ June 29, 2018, 9:06 a.m.


    blue CJS @ June 29, 2018, 9:06 a.m.

    bule and CJS @ June 29, 2018, 9:08 a.m.

    opp blue i need help CJS @ June 29, 2018, 9:08 a.m.

    Answer this question:

  • what is ypur favourite colour CJS @ June 29, 2018, 9:06 a.m.

    • blue — CJS @ June 29, 2018, 9:07 a.m.

    • blue — CJS @ June 29, 2018, 9:07 a.m.

    • blue — CJS @ June 29, 2018, 9:07 a.m.

    • blue — CJS @ June 29, 2018, 9:07 a.m.

    • blue — CJS @ June 29, 2018, 9:07 a.m.


    Answer this question:

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


    Answer this question:

  • can i die to day CJS @ June 29, 2018, 9:09 a.m.

    • Umm — damas5 @ Sept. 20, 2018, 4:37 a.m.

    • Umm — damas5 @ Sept. 20, 2018, 4:37 a.m.


    Answer this question:

  • i ont get how to wokr thoi 011031 @ July 26, 2018, 12:15 a.m.

    • idk — Alex fabbro @ Sept. 1, 2019, 10:50 p.m.


    Answer this question:

  • deleted


    Answer this question:

  • is codebug awesome or not M C @ Sept. 4, 2018, 9:29 a.m.


    Answer this question:

  • is codebug awesome or not M C @ Sept. 4, 2018, 9:29 a.m.


    Answer this question:

  • deleted


    Answer this question:

  • is my name Olivia Olivia Morris @ Sept. 19, 2019, 11:12 a.m.


    Answer this question:

  • Ask a new question:

Back to top