-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.rb
39 lines (31 loc) · 985 Bytes
/
view.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class View
def introduction
puts "Welcome to the Inner Critic Flashcard App! We hope you learn something today, but if not, we really don't care!"
end
def user_interface
puts "Would you like to go over your flashcards? (yes/no)"
end
def stop_playing
puts "Are you going to procastinate and stop playing?"
puts "Really?"
puts "But are you really really sure?"
end
def question(deck, current_question_index)
puts "#{deck[current_question_index].definition}?"
end
def correct_answer
puts "You got it! What a genius!!! (single clap../) Would you like to continue? ('yes' or 'quit')?"
end
def wrong_answer
puts ":( oh no! You were wrong. Guess again stupid."
end
def clear_cards
puts "Would you like to clear all your flash cards? (clear) \n You HAVE to know all this stuff by now."
end
def goodbye
puts "Sheesh. Didn't expect you to give up THAT easily."
end
def get_input
gets.chomp.downcase
end
end