Newer
Older
Ruby / janken.rb
@c120027 c120027 on 1 Oct 2021 319 bytes 2021-10-01 21:14:41
#!/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 " ✋ の いずれか を 入力してね!"