i also used elsif just cant think of what to put to keep track so any help or advice you can give would be appreciated
puts "Would you like to play a game of Rock, Paper, Scissors?"
puts "Y/N"
player_input = gets.chomp.downcase
while true #loops forever till quit is typed
if player_input == 'y'
puts "Lets Play Rock, Paper, Scissors!"
puts "Press r for Rock"
puts "Press s for Scissors"
puts "Press p for Paper"
puts "Press Enter when you select r,s,p"
puts "Oh if you want to quit at any time just type quit"
computer = "rsp"[rand(3)].chr
player = gets.chomp.downcase
case [player, computer]
when ['p','r'], ['s','p'], ['r','s']
puts "You Win! Congrats"
when ['r','r'], ['s','s'], ['p','p']
puts "You Tied! Bummer, like they say its just like kissing your sister"
else
puts "You Lose! Suck It Chump "
end
puts "The computer chose: #{computer.upcase}"
tracking = {
:wins => 0,
:loss => 0,
:ties => 0,
}
if
tracking[:wins] += 1
elsif
tracking[:loss] += 1
elsif
tracking[:ties] +=1
end
else player_input == "n"
puts "Oh you don't want to lose do you, CHICKEN"
exit
end
puts tracking[:wins]
puts tracking[:loss]
puts tracking[:ties]
break if player == "quit"
end

















