repl.it
@jonathanbell/

smiley face

Ruby

No description

fork
loading
Files
  • main.rb
main.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
puts"Get ready for a chalenging adventure"
puts "the point is to reach the end "
puts "but their will be chalenges and risks on the way, now comes your choise. "
puts "do you go on this wild journy or stay home."
choise = gets.chomp
puts "your choise " + choise + " is a good choise."

if choise == "wild journy"
  puts "you go out of the house your mother asks you if you want to use a car or go on a bus to start your journy. what do you say."
  carorbus = gets.chomp
  if carorbus == "car"
    puts "you get in the car the seats are hot because of the sun had not gone behind a single cloud. you start driving your adventure takes place in the amazon you live a days drive away this is going to be a long drive. Suddenly you are jolted out of your thoughts the cars fuel is empty, do you wait for the driver to refill or walk to the nearest gas station and hope for another ride."
    walkorride = gets.chomp
    if walkorride == "walk"
      puts "you get out of the car and say thank you to the driver but explain that you want to walk. you walk for about fifteen minutes and then see a farm. do you go to the farm or keep walking."
    end
    if walkorride == "ride"
      puts "you wait another fifteen minutes and then you get back in the car. you ride for eight hours and then set up a tent tomorrow your skill test finally begins."
    end
  end
  if carorbus == "bus"
    puts "you are sitting at the bus stop.The sun is pounding down on you, you  are reading a book. A bus pulls into the stop across the street. you wait five more minutes and then your bus comes. you get on the bus and sit by yourself. you look uot the window for a bit and then start reading your book. an hour later you look up your stop is comeing up fast do you pull the yellow cord or wait till the next stop "
    yellowcordorwait = gets.chomp
    if yellowcordorwait == "yellow cord"
      puts "You reach up and pull the yellow cord the bus slowly stops and you get off. Then you sit down again waiting for your next bus. your lucky the next bus comes a minute later. you get on and rid for the next ten hours. slowly people start getting off the bus and by the tenth hour you are the only one left. you get off the bus and set up your tent it is going to be a long day tomorrow. and your skill test begins. "
    end
  end   
end

if choise == "stay home" 
  puts "you go home and finish your home work. then you get an ice cream."
end 




ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
?