示例#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();
 }