Пример #1
0
        static void Main(string[] args)
        {
            if (args.Length != 1)
            {
                Console.WriteLine("Usage: {0} <sentence>", AppDomain.CurrentDomain.FriendlyName);
            }
            else
            {
                Application application = new Application(new SentenceAnalyzer(), new OutputRenderer());

                string sentence = args[0];
                string output = application.AnalyzeSentence(sentence);

                Console.WriteLine(output);
            }

            Console.WriteLine("Press return to exit.");
            Console.ReadLine();
        }
Пример #2
0
 static void Main()
 {
     using (var game = new Application())
         game.Run();
 }
Пример #3
0
 protected void Init(string sentence)
 {
     application = new Application.Application(new SentenceAnalyzer(), new OutputRenderer());
     input = sentence ?? "";
 }