#!/usr/bin/env ruby # -*- coding: utf-8 -*- def question(choices,text) print("\n") x = 0 for i in choices printf("%s(%d)\n"i,x) end while select >= 0 && select <= choices.length printf("%s:",text) select = gets.chomp end end value = [] q1 = ["イージー","ノーマル","ハード"] puts("人狼ゲーム") puts("自分を含めた参加者人数を決めてください") while vslue[0] >=3 && vslue[0] <= 5 print("参加者人数:") vslue[0] = gets.chomp end