Last active
August 29, 2015 14:03
-
-
Save aoisensi/c3ef0f43678cb4b1af82 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace test01 | |
{ | |
class Program { | |
static string[] mess = { "今日学校だ", "学校いこ", "学校ついた", "眠い", "お腹すいた", "帰ろ" }; | |
static string[] mesy = { "今日学校だ", "…休も" }; | |
public static void WriteAA(string speech, int n) | |
{ | |
Console.Clear(); | |
Console.WriteLine(" ∧__∧ "); | |
Console.Write(" (´・ω・) < "); | |
Console.WriteLine(speech); | |
Console.WriteLine(" ( つ ヽ"); | |
Console.WriteLine(" 〉とノ) "); | |
Console.WriteLine(" (_ノ^(_)"); | |
System.Threading.Thread.Sleep(n); | |
} | |
static void Main(string[] args) | |
{ | |
Random r = new Random(); | |
while (true) | |
{ | |
string[] str; | |
int sleep; | |
if (r.Next(2) == 0) | |
{ | |
str = mess; | |
sleep = 1000; | |
} | |
else | |
{ | |
str = mesy; | |
sleep = 2000; | |
} | |
for(int i = 0; i < str.Length; i++) | |
{ | |
WriteAA(str[i], sleep); | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment