class Syncmind::PersonalityQuiz

Public Class Methods

accepts_things() click to toggle source

Do you accept things the way they are?

# File lib/syncmind.rb, line 139
def self.accepts_things
  system("clear")

  print "
  Do you prefer to accept things the way they are?
  
  [A] I shall accept what you say.
  [B] I want to try to change your mind.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I shall accept what you say."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to try to change your mind."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to try to change your mind."
      
      f.puts old_script
    }
  end
end
alone_time() click to toggle source

Do you prefer to be alone or with others?

# File lib/syncmind.rb, line 100
def self.alone_time
  system("clear")

  print "
  Do you prefer to be alone or with others?
  
  [A] Will you leave me alone.
  [B] I want to be with you.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Will you leave me alone."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to be with you."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to be with you."
      
      f.puts old_script
    }
  end
end
automatic_decisions() click to toggle source

Do you make decisions first or think through them?

# File lib/syncmind.rb, line 217
def self.automatic_decisions
  system("clear")

  print "
  Do you prefer to act and think later?
  
  [A] I want to have some action.
  [B] Let me think first!
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to have some action."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Let me think first!"
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Let me think first!"
      
      f.puts old_script
    }
  end
end
big_picture() click to toggle source

Do you prefer the big picture or the forest?

# File lib/syncmind.rb, line 927
def self.big_picture
  system("clear")

  print "
  Do you want the big picture?
  
  [A] Give me a break down of every single detail.
  [B] What do all those details mean?
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Give me a break down of every single detail."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "What do all those details mean?"
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "What do all those details mean?"
      
      f.puts old_script
    }
  end
end
cleanliness() click to toggle source

Do you keep a clean room or not?

# File lib/syncmind.rb, line 178
def self.cleanliness
  system("clear")

  print "
  Do you keep a clean room?
  
  [A] I think I'll try to clean my room.
  [B] I think I will clean my room later.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think I'll try to clean my room."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think I will clean my room later."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think I will clean my room later."
      
      f.puts old_script
    }
  end
end
comfort_of_emotions() click to toggle source

Do you feel comfortable with your emotions?

# File lib/syncmind.rb, line 1167
def self.comfort_of_emotions
  system("clear")

  print "
  Do you feel comfortable with your emotions?
  
  [A] Not sure how to sort out my feelings.
  [B] Oh god! Let me tell you everything.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Not sure how to sort out my feelings."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Oh god! Let me tell you everything."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Oh god! Let me tell you everything."
      
      f.puts old_script
    }
  end
end
commitment() click to toggle source

Do you keep your options open, or commit to a task?

# File lib/syncmind.rb, line 647
def self.commitment
  system("clear")

  print "
  Do you like to finish your work?
  
  [A] I want to finish this project I've been working on.
  [B] The project I had in mind can wait.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to finish this project I've been working on."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "The project I had in mind can wait."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "The project I had in mind can wait."
      
      f.puts old_script
    }
  end
end
conversational() click to toggle source

Do you prefer to talk, or be talked to?

# File lib/syncmind.rb, line 727
def self.conversational
  system("clear")

  print "
  Do you like to talk or be talked to?
  
  [A] Please! You're being condescending!
  [B] Let me give you a rundown of things.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Please! You're being condescending!"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Let me give you a rundown of things."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Let me give you a rundown of things."
      
      f.puts old_script
    }
  end
end
create_data_folder() click to toggle source
# File lib/syncmind.rb, line 9
def self.create_data_folder  # Creates a data folder on your computer with placeholder script if it doesn't exist.
  if File.directory?("data")
    puts "Data directory already exists."
  else
    system("mkdir data")
  
    open("data/script.txt", "w") { |f|
      f.puts "Hello World"
    }
  end
end
critical_thinking() click to toggle source

Do you tend to rely on faith or evidence?

# File lib/syncmind.rb, line 61
def self.critical_thinking
  system("clear")

  print "
  Do you prefer to see the evidence, or have faith?
  
  [A] I want to see the evidence.
  [B] I shall have faith in it.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to see the evidence."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I shall have faith in it."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I shall have faith in it."
      
      f.puts old_script
    }
  end
end
easy_answers() click to toggle source

Do you prefer yes or no answers, or multiple choice?

# File lib/syncmind.rb, line 295
def self.easy_answers
  system("clear")

  print "
  Do you like your questions simple?
  
  [A] Do I have any nuanced choices?
  [B] Give me a yes or no question.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Do I have any nuanced choices?"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Give me a yes or no question."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Give me a yes or no question."
      
      f.puts old_script
    }
  end
end
event_recall() click to toggle source

Do you prefer to tell the exact event, or the meaning behind it.

# File lib/syncmind.rb, line 767
def self.event_recall
  system("clear")

  print "
  Do you like to recall the exact events?
  
  [A] Let me tell you exactly how my day went!
  [B] I want to know what just happened meant!
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Let me tell you exactly how my day went"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to know what just happened meant!"
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to know what just happened meant!"
      
      f.puts old_script
    }
  end
end
fixing_others() click to toggle source

Do you want to fix other people, or do like being fixed?

# File lib/syncmind.rb, line 687
def self.fixing_others
  system("clear")

  print "
  Do you like to fix other people?
  
  [A] I want to talk about my problems.
  [B] I want others to talk about their problems.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to talk about my problems."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want others to talk about their problems."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want others to talk about their problems."
      
      f.puts old_script
    }
  end
end
group_focus() click to toggle source

Do you work best in groups, or work best alone?

# File lib/syncmind.rb, line 412
def self.group_focus
  system("clear")

  print "
  Do you like to work with other people?
  
  [A] I want to find a team mate to work with.
  [B] I want to me left alone so I can work.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to find a team mate to work with."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to me left alone so I can work."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to me left alone so I can work."
      
      f.puts old_script
    }
  end
end
home_alone() click to toggle source

Do you prefer to stay at home or go out?

# File lib/syncmind.rb, line 887
def self.home_alone
  system("clear")

  print "
  Do you like to stay at home?
  
  [A] How is where the heart is, and my importantly--my bed.
  [B] I'm getting some cabin fever at the moment.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "How is where the heart is, and my importantly--my bed."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I'm getting some cabin fever at the moment."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I'm getting some cabin fever at the moment."
      
      f.puts old_script
    }
  end
end
hurt_feelings() click to toggle source

Do you easily get your feelings hurt?

# File lib/syncmind.rb, line 373
def self.hurt_feelings
  system("clear")

  print "
  Do you easile get your feelings hurt?
  
  [A] You hurt my feelings!
  [B] You didn't hurt my feelings.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "You hurt my feelings!"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "You didn't hurt my feelings."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "You didn't hurt my feelings."
      
      f.puts old_script
    }
  end
end
introversion() click to toggle source

Do you get warn out at parties or fired up?

# File lib/syncmind.rb, line 569
def self.introversion
  system("clear")

  print "
  Do you find large crowds exhausting?
  
  [A] You are presently overcrowding me.
  [B] I want to find more friends.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "You are presently overcrowding me."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to find more friends."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to find more friends."
      
      f.puts old_script
    }
  end
end
issues_of_respect() click to toggle source

Do you prefer respect or love

# File lib/syncmind.rb, line 530
def self.issues_of_respect
  system("clear")

  print "
  Do you want to be loved?
  
  [A] I want to have your respect.
  [B] Do you love me?
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to have your respect."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Do you love me?"
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Do you love me?"
      
      f.puts old_script
    }
  end
end
justice_or_compassion() click to toggle source

Do you prefer retributes or rehabilitation?

# File lib/syncmind.rb, line 1007
def self.justice_or_compassion
  system("clear")

  print "
  Do you prefer a convict executed or spared?
  
  [A] Off with your head!
  [B] Eh, no worries.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Off with your head!"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Eh, no worries."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Eh, no worries."
      
      f.puts old_script
    }
  end
end
memory() click to toggle source

Do you rely on memory or list making?

# File lib/syncmind.rb, line 22
def self.memory
  system("clear")

  print "
  Do you rely on memory or list making?
  
  [A] Let me make a list of that.
  [B] I will try and remember that.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Let me make a list of that."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I will try and remember that."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I will try and remember that."
      
      f.puts old_script
    }
  end
end
mind_or_heart() click to toggle source

Do you follow your heart or your head?

# File lib/syncmind.rb, line 847
def self.mind_or_heart
  system("clear")

  print "
  Do you life your life with feelings?
  
  [A] Ha! Good one! But give me a real question.
  [B] Lets talk about things I've been brainstorming.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Ha! Good one! But give me a real question."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Lets talk about things I've been brainstorming."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Lets talk about things I've been brainstorming."
      
      f.puts old_script
    }
  end
end
on_the_fly() click to toggle source

Do you do things on the fly, or plan ahead?

# File lib/syncmind.rb, line 967
def self.on_the_fly
  system("clear")

  print "
  Do you do things at the spur of the moment?
  
  [A] I want to go see a movie!
  [B] Can it wait at another point?
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to go see a movie!"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Can it wait at another point?"
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Can it wait at another point?"
      
      f.puts old_script
    }
  end
end
operate_quiz() click to toggle source

Operate the Default Quiz

# File lib/syncmind.rb, line 1287
def self.operate_quiz
  Syncmind::PersonalityQuiz.create_data_folder
  Syncmind::PersonalityQuiz.memory
  Syncmind::PersonalityQuiz.critical_thinking
  Syncmind::PersonalityQuiz.alone_time
  Syncmind::PersonalityQuiz.accepts_things
  Syncmind::PersonalityQuiz.cleanliness
  Syncmind::PersonalityQuiz.automatic_decisions
  Syncmind::PersonalityQuiz.relaxation_check
  Syncmind::PersonalityQuiz.easy_answers
  Syncmind::PersonalityQuiz.organizational
  Syncmind::PersonalityQuiz.hurt_feelings
  Syncmind::PersonalityQuiz.group_focus
  Syncmind::PersonalityQuiz.retrospective
  Syncmind::PersonalityQuiz.planning
  Syncmind::PersonalityQuiz.issues_of_respect
  Syncmind::PersonalityQuiz.introversion
  Syncmind::PersonalityQuiz.stand_out
  Syncmind::PersonalityQuiz.commitment
  Syncmind::PersonalityQuiz.fixing_others
  Syncmind::PersonalityQuiz.conversational
  Syncmind::PersonalityQuiz.event_recall
  Syncmind::PersonalityQuiz.procrastination
  Syncmind::PersonalityQuiz.mind_or_heart
  Syncmind::PersonalityQuiz.home_alone
  Syncmind::PersonalityQuiz.big_picture
  Syncmind::PersonalityQuiz.on_the_fly
  Syncmind::PersonalityQuiz.justice_or_compassion
  Syncmind::PersonalityQuiz.yelling_at_others
  Syncmind::PersonalityQuiz.theory_or_practice
  Syncmind::PersonalityQuiz.work_ethic
  Syncmind::PersonalityQuiz.comfort_of_emotions
  Syncmind::PersonalityQuiz.performance
  Syncmind::PersonalityQuiz.what_is_that
end
organizational() click to toggle source

Do you like things to be chaotic or organized?

# File lib/syncmind.rb, line 334
def self.organizational
  system("clear")

  print "
  Do you like causing chaos for other people?
  
  [A] I want to see whose life I can ruin.
  [B] Lets try to keep life as simple and orderly as possible.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Do I have any nuanced choices?"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Give me a yes or no question."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Give me a yes or no question."
      
      f.puts old_script
    }
  end
end
performance() click to toggle source

Do you like to perform in front of others?

# File lib/syncmind.rb, line 1207
def self.performance
  system("clear")

  print "
  Do you like to perform in front of others?
  
  [A] I want to get some tap shoes and a piano!
  [B] I think I'll hide behind you.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to get some tap shoes and a piano!"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think I'll hide behind you."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think I'll hide behind you."
      
      f.puts old_script
    }
  end
end
planning() click to toggle source

Do you plan far ahead, or at the last minute?

# File lib/syncmind.rb, line 491
def self.planning
  system("clear")

  print "
  Do you like to plan at the last minute?
  
  [A] I think I forgot to get something.
  [B] I think I got all my things.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think I forgot to get something."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think I got all my things."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think I got all my things."
      
      f.puts old_script
    }
  end
end
procrastination() click to toggle source

Do you get work done right away or delay it?

# File lib/syncmind.rb, line 807
def self.procrastination
  system("clear")

  print "
  Do you like to finish your work?
  
  [A] I already have my old project finished.
  [B] I think I still haven't finished the last project.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I already have my old project finished."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think I still haven't finished the last project."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think I still haven't finished the last project."
      
      f.puts old_script
    }
  end
end
relaxation_check() click to toggle source

Are you always mellow or do you relax?

# File lib/syncmind.rb, line 256
def self.relaxation_check
  system("clear")

  print "
  Do you like to relax?
  
  [A] I want to smoke a joint!
  [B] Your question is making me nervous.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to smoke a joint!"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Your question is making me nervous."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Your question is making me nervous."
      
      f.puts old_script
    }
  end
end
retrospective() click to toggle source

Do you focus on the past, present, or future?

# File lib/syncmind.rb, line 451
def self.retrospective
  system("clear")

  print "
  Do you live moment to moment?
  
  [A] I want to remember something important.
  [B] I just want to make some coffee.
  [C] I want to plan the next few weeks.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to remember something important."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I just want to make some coffee."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to plan the next few weeks."
      
      f.puts old_script
    }
  end
end
stand_out() click to toggle source

Do you fit in, or stand out like a sore thumb?

# File lib/syncmind.rb, line 608
def self.stand_out
  system("clear")

  print "
  Do you like to draw attention to yourself?
  
  [A] Ladies and gentlemen, may I have your attention?
  [B] Don't look at me please.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Ladies and gentlemen, may I have your attention?"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Don't look at me please."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Don't look at me please."
      
      f.puts old_script
    }
  end
end
theory_or_practice() click to toggle source

Do you prefer speculating about the theory or practicing it?

# File lib/syncmind.rb, line 1087
def self.theory_or_practice
  system("clear")

  print "
  Do you want to know the theory of stuff?
  
  [A] Give me a break of Conflict Theory!
  [B] Lets be practical with our conversation.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Give me a break of Conflict Theory!"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Lets be practical with our conversation."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Lets be practical with our conversation."
      
      f.puts old_script
    }
  end
end
what_is_that() click to toggle source

Do you prefer to know why something happened, or who, what, and when? Or both.

# File lib/syncmind.rb, line 1247
def self.what_is_that
  system("clear")

  print "
  Do you like to know the reason behind things?
  
  [A] Why do you think that happened?
  [B] Tell me who did it, what they did, and when!
  [C] I want to know the why and who what when.
  
  >> "; answer = gets.chomp
  
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Why do you think that happened?"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Tell me who did it, what they did, and when!"
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I want to know the why and who what when."
      
      f.puts old_script
    }
  end
end
work_ethic() click to toggle source

Do you work hard or slack off?

# File lib/syncmind.rb, line 1127
def self.work_ethic
  system("clear")

  print "
  Do you like to work hard?
  
  [A] My back aches, but the math equation is finished.
  [B] I think several hours has gone by.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "My back aches, but the math equation is finished."
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think several hours has gone by."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "I think several hours has gone by."
      
      f.puts old_script
    }
  end
end
yelling_at_others() click to toggle source

Do you find it easy to yell at others?

# File lib/syncmind.rb, line 1047
def self.yelling_at_others
  system("clear")

  print "
  Do you like to yell at other people?
  
  [A] Why do I have to yell at you so much!
  [B] If I have to yell at you, it's not worth explaining.
  
  >> "; answer = gets.chomp
  
  # Tweak the answers.
  if    answer == "A" # Writes A answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "Why do I have to yell at you so much!"
      
      f.puts old_script
    }
  elsif answer == "B" # Writes B answer to script file.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "If I have to yell at you, it's not worth explaining."
      
      f.puts old_script
    }
  else                # Picks a default answer.
    old_script = File.read("data/script.txt")
  
    open("data/script.txt", "w") { |f|
      f.puts "If I have to yell at you, it's not worth explaining."
      
      f.puts old_script
    }
  end
end