Пример #1
0
        static void Main(string[] args)
        {
            string testFile = null;
            if (args.Length > 0)
            {
                foreach (string arg in args)
                {
                    Match match = Regex.Match(arg, @"\-(?<argname>\w+):(?<argvalue>.+)");
                    if (match.Success && match.Groups["argname"].Value == "test" && File.Exists(match.Groups["argvalue"].Value))
                    {
                        testFile = match.Groups["argvalue"].Value;
                    }
                }
            }

            using (var game = new Match3Game())
            {
                game.TestFile = testFile;
                game.Run();
            }
        }
Пример #2
0
 static void Main()
 {
     using (var game = new Match3Game())
         game.Run();
 }
Пример #3
0
 static void Main()
 {
     using (var game = new Match3Game())
         game.Run();
 }