Ejemplo n.º 1
0
        public int problem1()
        {
            var _inputReader = new InputReaders();
            var path         = @"C:\Users\emollett\Documents\sites\AdventOfCode2020\AdventOfCode2020\Inputs\22_CrabCombat.txt";
            var decks        = _inputReader.readParagraphsToList(path);
            var _crabCombat  = new CrabCombat(decks);

            _crabCombat.playGame1();
            var score = _crabCombat.calculateScore(_crabCombat.GameWinner);

            return(score);
        }
Ejemplo n.º 2
0
        public int problem2()
        {
            // Current state 20/12/24 - the tests pass but I'm not getting the correct solution ¯\_(ツ)_/¯

            var _inputReader = new InputReaders();
            var path         = @"C:\Users\emollett\Documents\sites\AdventOfCode2020\AdventOfCode2020\Inputs\22_CrabCombat.txt";
            var decks        = _inputReader.readParagraphsToList(path);
            var _crabCombat  = new CrabCombat(decks);

            _crabCombat.playGame2();
            var score = _crabCombat.calculateScore(_crabCombat.GameWinner);

            return(score);
        }