using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static Random newletter = new Random();
static void Main(string[] args)
{
string[] alphabet;
Console.WriteLine("Typing reflex game"); Console.WriteLine(); Console.WriteLine();
Console.WriteLine("You must type the letter you see as fast as you can");
Console.WriteLine("Hit enter to start");
Console.ReadLine();
Console.WriteLine("The game starts in: 3"); System.Threading.Thread.Sleep(1000);
Console.WriteLine("The game starts in: 2"); System.Threading.Thread.Sleep(1000);
Console.WriteLine("The game starts in: 1"); System.Threading.Thread.Sleep(1000);
ConsoleKeyInfo inputletter;
alphabet = new string[26];
alphabet[0] = "A";
alphabet[1] = "B";
alphabet[2] = "C";
alphabet[3] = "D";
alphabet[4] = "E";
alphabet[5] = "F";
alphabet[6] = "G";
alphabet[7] = "H";
alphabet[8] = "I";
alphabet[9] = "J";
alphabet[10] = "K";
alphabet[11] = "L";
alphabet[12] = "M";
alphabet[13] = "N";
alphabet[14] = "O";
alphabet[15] = "P";
alphabet[16] = "Q";
alphabet[17] = "R";
alphabet[18] = "S";
alphabet[19] = "T";
alphabet[20] = "U";
alphabet[21] = "V";
alphabet[22] = "W";
alphabet[23] = "X";
alphabet[24] = "Y";
alphabet[25] = "Z";
do
{
Console.Clear();
int lol = newletter.Next(0, 25);
Console.WriteLine("Typing reflex game"); Console.WriteLine(); Console.WriteLine();
Console.WriteLine(" TYPE THIS LETTER:"); Console.WriteLine();
Console.Write(" " + alphabet[lol]);
inputletter = Console.ReadKey();
alphabet[lol].ToString();
if (inputletter.ToString() == alphabet[lol])
{
}
Console.WriteLine(inputletter.Key.ToString());
} while (inputletter.Key != ConsoleKey.Escape);
}
}
}