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" ]])
ZGVmIHJwc19nYW1lX3dpbm5lcihnYW1lKQoJY2FzZSAoZ2FtZVswXVsxXSkKCQl3aGVuICdSJyAKCQkJcHV0cyAiI3tnYW1lWzBdWzBdfSB3aW5zIiBpZiBnYW1lWzFdWzFdPSdTJyAKCQkJcHV0cyAiI3tnYW1lWzFdWzBdfSB3aW5zIiBpZiBnYW1lWzFdWzFdPSdQJwoJCQlwdXRzICIje2dhbWVbMF1bMF19IHdpbnMiIGlmIGdhbWVbMV1bMV09J1InCgkJd2hlbiAnUCcKCQkJcHV0cyAiI3tnYW1lWzBdWzBdfSB3aW5zIiBpZiBnYW1lWzFdWzFdPSdSJyAKCQkJcHV0cyAiI3tnYW1lWzFdWzBdfSB3aW5zIiBpZiBnYW1lWzFdWzFdPSdTJwoJCQlwdXRzICIje2dhbWVbMF1bMF19IHdpbnMiIGlmIGdhbWVbMV1bMV09J1AnCgkJd2hlbiAnUycKCQkJcHV0cyAiI3tnYW1lWzBdWzBdfSB3aW5zIiBpZiBnYW1lWzFdWzFdPSdQJyAKCQkJcHV0cyAiI3tnYW1lWzFdWzBdfSB3aW5zIiBpZiBnYW1lWzFdWzFdPSdSJwoJCQlwdXRzICIje2dhbWVbMF1bMF19IHdpbnMiIGlmIGdhbWVbMV1bMV09J1MnCgkJZW5kCmVuZApycHNfZ2FtZV93aW5uZXIoW1sgIkFybWFuZG8iLCAiUCIgXSwgWyAiRGF2ZSIsICJTIiBdXSk=