def rps_game_winner(game)
case (game[0][1])
when 'R'
puts "#{game[0][0]} wins" if game[1][1]=='S'
puts "#{game[1][0]} wins" if game[1][1]=='P'
puts "#{game[0][0]} wins" if game[1][1]=='R'
when 'P'
puts "#{game[0][0]} wins" if game[1][1]=='R'
puts "#{game[1][0]} wins" if game[1][1]=='S'
puts "#{game[0][0]} wins" if game[1][1]=='P'
when 'S'
puts "#{game[0][0]} wins" if game[1][1]=='P'
puts "#{game[1][0]} wins" if game[1][1]=='R'
puts "#{game[0][0]} wins" if game[1][1]=='S'
end
end
rps_game_winner([[ "Armando", "P" ], [ "Dave", "S" ]])
ZGVmIHJwc19nYW1lX3dpbm5lcihnYW1lKQoJY2FzZSAoZ2FtZVswXVsxXSkKCQl3aGVuICdSJyAKCQkJcHV0cyAiI3tnYW1lWzBdWzBdfSB3aW5zIiBpZiBnYW1lWzFdWzFdPT0nUycgCgkJCXB1dHMgIiN7Z2FtZVsxXVswXX0gd2lucyIgaWYgZ2FtZVsxXVsxXT09J1AnCgkJCXB1dHMgIiN7Z2FtZVswXVswXX0gd2lucyIgaWYgZ2FtZVsxXVsxXT09J1InCgkJd2hlbiAnUCcKCQkJcHV0cyAiI3tnYW1lWzBdWzBdfSB3aW5zIiBpZiBnYW1lWzFdWzFdPT0nUicgCgkJCXB1dHMgIiN7Z2FtZVsxXVswXX0gd2lucyIgaWYgZ2FtZVsxXVsxXT09J1MnCgkJCXB1dHMgIiN7Z2FtZVswXVswXX0gd2lucyIgaWYgZ2FtZVsxXVsxXT09J1AnCgkJd2hlbiAnUycKCQkJcHV0cyAiI3tnYW1lWzBdWzBdfSB3aW5zIiBpZiBnYW1lWzFdWzFdPT0nUCcgCgkJCXB1dHMgIiN7Z2FtZVsxXVswXX0gd2lucyIgaWYgZ2FtZVsxXVsxXT09J1InCgkJCXB1dHMgIiN7Z2FtZVswXVswXX0gd2lucyIgaWYgZ2FtZVsxXVsxXT09J1MnCgkJZW5kCmVuZApycHNfZ2FtZV93aW5uZXIoW1sgIkFybWFuZG8iLCAiUCIgXSwgWyAiRGF2ZSIsICJTIiBdXSk=