Skip to content

Instantly share code, notes, and snippets.

@MuoTK
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MuoTK/c738eef8444a4664e598 to your computer and use it in GitHub Desktop.
Save MuoTK/c738eef8444a4664e598 to your computer and use it in GitHub Desktop.
hoge
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