static void Main()
        {
            TestAll turnTester = new TestAll();

            turnTester.run_tests();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            BattleArena      battle     = new BattleArena();
            battleController controller = new battleController(battle); //, view);
            TestView         view       = new TestView(controller);     //, battle);

            Application.Run(view);
        }
示例#2
0
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log($"Frequency = {ProcessingTimeCalculator.Frequency()}");

        foreach ((int size, int times) in sizeAndTimes)
        {
            string output = $"name\ttotal_ms\tavg_ms\t#size = {size}, times = {times}\n";

            var runAll  = new TestAll(size, times);
            var results = runAll.Run();

            foreach (var result in results)
            {
                output += $"{result.Key}\t{result.Value}\t{result.Value / times}\n";
            }

            Debug.Log(output);
        }
    }