Skip to content

Instantly share code, notes, and snippets.

Created May 1, 2015 09:54
Show Gist options
  • Save anonymous/78a58cc3fa6aaaad4e80 to your computer and use it in GitHub Desktop.
Save anonymous/78a58cc3fa6aaaad4e80 to your computer and use it in GitHub Desktop.
question1 = {
question: "What is the capital of England?
",
answers: ["Berlin" "Oslo" "London"],
correct_answer: 2
}
question2 = {
question: "Who started apple?
",
answers: ["Bill Gates" "Steve Jobs" "Michael Jordan"],
correct_answer: 1
}
question3 = {
question: "Whats the real name of mafia boy?
",
answers: ["James bond" "Michael Calce" "Vandetta"],
correct_answer: 1
}
questions = [
question1,
question2,
question3
]
questions.each_with_index do |question, index|
print question [:question]
gets.chomp
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment