#!/usr/bin/env ruby # -*- coding: utf-8 -*- print("Hello!!!\n") print("My name is Syoma\n") print("I like sushi.\n") print("I like ra-men_noodle\n") print("I want new_pc\n") print("minecraft,terrria,otoge-woyattemasu.\n") print("yorosiku\n") print("tukareta\n") print(":)\n") print("数字を入力\n") suuzi = gets.to_i printf("number:%d\n",suuzi) print("what your name?\n") mozi = gets.chomp printf("hey!%s\n",mozi) print("aまたはbを入力\n") aorb = gets.chomp if aorb == "a" print ("you like a?\n") elsif aorb == "b" print ("you like b?\n") else print ("what???\n") end sleep(1) random = rand(3) printf("yourrandomnumber(0~3)=%d\n",random) sleep(1) puts "umm... sleepy" puts "(o_o)" puts "what's up" puts "huh that?" print("test\n") sleep(2) puts "問題" puts "o-05-47は?" puts "1:一般人" puts "2:ダイソン" puts "3:Don't touch me" while true print("答えを入力") qone = gets.chomp.to_i if qone == 1 puts "不正解です。47なわけないだろ" redo elsif qone == 2 puts "不正解です。" redo elsif qone == 3 puts "正解!!! ハチジハアアァァァァァァン" break end end sleep(1) puts "第2門!!デデン" puts "危険度とegoの危険度が違うのは貪欲の王とピンクと何?" puts "1.白夜" puts "2.審判鳥" puts "3.溶ける愛" while true print"どれでしょう!!!" qtwo = gets.chomp.to_i if qtwo == 1 puts "あのラスボスなみの白夜だぞ?なわけ" redo elsif qtwo == 2 puts "YES.ジャスティティア強くね?" break elsif qtwo == 3 puts "まあスポンサーだし覚えてないけど違います" redo end end sleep(1) puts "How are you?" puts "1:fine." puts "2:great" puts "3:hungry" puts "4:umm.. IDK:)" while true qtre = gets.chomp.to_i if qtre == 1 puts "oh nice." break elsif qtre == 2 puts "nice" break elsif qtre == 3 puts "me too" break elsif qtre == 4 print("パァン(銃声)\n") break end end