>>679
def janken(hand, opp_number)
  hands = opp_number.times.map{%w[g v w].sample}.unshift(hand)
  p hands.map.with_index{|h, i| [i == 0 ? 'You' : "PC#{i}", h]}
  return 'Draw' if hands.uniq.size != 2
  hands = hands.uniq.join.sum == 0xDE ? %w[w g] : hands.uniq.sort
  ['You Win!', 'You Lose!'][hands.index(hand)]
end

puts janken(?g, 1)
# => [["You", "g"], ["PC1", "v"]]
You Win!

puts janken(?v, 2)
# => [["You", "v"], ["PC1", "v"]]
Draw

puts janken(?w, 3)
# => [["You", "w"], ["PC1", "g"], ["PC2", "v"]]
Draw

puts janken(?g, 4)
# => [["You", "g"], ["PC1", "g"], ["PC2", "g"], ["PC3", "v"], ["PC4", "v"]]
You Win!