Here's my whole code so far if it helps you help me
score = 0
turns = 0
faces = [one, two, three, four, five, six]
answered = false
while (answered == false) do
puts "Would you like to Roll or Pass?"
input = gets().chomp().downcase()
if (input == "pass")
puts "\nFinal Score is: " + score.to_s()
(answered = true)
end
if (input != "pass")
roll_1 = rand(6)
roll_2 = rand(6)
puts faces[roll_1] + faces[roll_2]
score = score + (roll_1 + 1) + (roll_2 +1)
turns = turns + 1
puts "Current Score is: " + score.to_s()
elsif (roll_1 == 0 || roll_2 == 0)
puts "You lose!\nFinal Score is: 0"
(answered = true)
end
end
puts "Turns taken: " + turns.to_s()
--
Posted via http://www.ruby-forum.com/.