Last active
August 29, 2015 14:03
-
-
Save MuoTK/c738eef8444a4664e598 to your computer and use it in GitHub Desktop.
hoge
This file contains 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 = { "今日学校だ", "…休も" }; | |
static int i = 0; | |
public static void Message() | |
{ | |
Console.WriteLine(" ∧__∧ "); | |
Console.WriteLine(" (´・ω・) < " + mess[i++ % mess.Length]); | |
Console.WriteLine(" ( つ ヽ"); | |
Console.WriteLine(" 〉とノ) "); | |
Console.WriteLine(" (_ノ^(_)"); | |
System.Threading.Thread.Sleep(1000); | |
} | |
public static void MessageYSM() | |
{ | |
Console.WriteLine(" ∧__∧ "); | |
Console.WriteLine(" (´・ω・) < " + mesy[i++ % mesy.Length]); | |
Console.WriteLine(" ( つ ヽ"); | |
Console.WriteLine(" 〉とノ) "); | |
Console.WriteLine(" (_ノ^(_)"); | |
System.Threading.Thread.Sleep(2000); | |
} | |
static void Main(string[] args) | |
{ | |
while (true) | |
{ | |
Random r = new Random(); | |
int num = r.Next(2); | |
Console.Clear(); | |
if (num == 0) | |
{ | |
Message(); | |
} | |
else if (num == 1) | |
{ | |
MessageYSM(); | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment