> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://cst1101.sketchpad.cc/sp/pad/view/ro.QLJDptBCBda/rev.2958
 * 
 * authors: 
 *   Akram

 * license (unless otherwise specified): 
 *   creative commons attribution-share alike 3.0 license.
 *   https://creativecommons.org/licenses/by-sa/3.0/ 
 */ 



// ASK THE QUESTION AND PRESS THE MOUSE BUTTON.
// YES/NO Questions only.

/* @pjs preload="/static/uploaded_resources/p.3299/8ball.png"; */   
PImage img = loadImage("/static/uploaded_resources/p.3299/8ball.png");


void setup() {
  size(500, 500);
  image(img,0,0,width,height);
  textSize(16);
 }

void draw() {
  fill(255,0,0);
  text("Ask a question and press the mouse.",125, 50);
  fill(255);
  text("Yes or No questions only!",160,70);
 }

// -----------------------Have to add more options---------------------

int [] words = {
//---------- NEUTRAL Responses -----------

       "Better not tell you now.",
       "Ask again later.",
       "Cannot predict now.",
       "Cannot concentrate.",
       "Reply hazy, try again.",
       "It seems possible.",
       "It seems impossible.",
       "Who knows?.",
       "Probably.",
       "Better not tell you now.",
       
//----------- NO Responses ---------------

       "The answer is no.",       
       "The great one speaks and says no.",     
       "Nope.",
       "Don't count on it.",
       "My reply is no.",           
       "My sources say no.",
       "Outlook not so good.",
       "Very doubtful.",
       "Are you kidding?",
       "Don't bet on it.",
       "Forget about it.",
 
//------------ YES Responses -------------   
    
       "Yeah!",
       "It is certain.",
       "It is decidedly so.",
       "Without a doubt.",
       "Definitely.",
       "The great one speaks and says yes.",
       "The answer is yes.", 
       "As I see it, yes.",
       "Outlook good.",
       "Signs point to yes.",
       "Go for it!", 
       "Yes, in due time.",
      
      };

void mousePressed() {
int index = int(random(words.length)); 
println(words[index]); 
}