예제 #1
0
        public override string Second()
        {
            string        filename = GetFilename();
            List <string> input    = System.IO.File.ReadAllLines(filename).ToList();

            PRINT = false;
            RecursiveCombat game = new RecursiveCombat(input);

            game.PlayGame();
            var result = game.Score();

            return(result.ToString());
        }
예제 #2
0
        public override bool Test2()
        {
            string        filename = GetTestFilename();
            List <string> input    = System.IO.File.ReadAllLines(filename).ToList();

            PRINT = false;
            RecursiveCombat game = new RecursiveCombat(input);

            game.PlayGame();
            var result = game.Score();

            bool testSucceeded = result == 291;

            return(testSucceeded);
        }