#!/usr/bin/env ruby # coding: utf-8 def janken() hand = ["✊","✌","✋"] while true n = rand(hand.length) te = gets.to_s.chomp if te == "✊" && n == 1 x = 1 end puts "ジャンケン勝負!!" puts " ✊ " puts " ✌ " puts " ✋ の いずれか を 入力してね!"