Esempio n. 1
0
        public void PuzzelTwo()
        {
            var fish   = InputParser.ParseDelimited("input_data/day6-1.txt");
            var school = new LaternFishSchool(fish);

            for (int i = 0; i < 256; i++)
            {
                school.SimulateDay();
            }

            Assert.Equal(1765974267455, school.SchoolSize());
        }
Esempio n. 2
0
        public void TestInput()
        {
            var fish   = InputParser.ParseDelimited("input_data/day6-test.txt");
            var school = new LaternFishSchool(fish);

            for (int i = 0; i < 80; i++)
            {
                school.SimulateDay();
            }

            Assert.Equal(5934, school.SchoolSize());
        }
Esempio n. 3
0
        public void PuzzelOne()
        {
            var fish   = InputParser.ParseDelimited("input_data/day6-1.txt");
            var school = new LaternFishSchool(fish);

            for (int i = 0; i < 80; i++)
            {
                school.SimulateDay();
            }

            Assert.Equal(394994, school.SchoolSize());
        }