Example #1
0
        public void Day23_CrabCups_Part1_Ok()
        {
            var sut = new CrabCupsGame(prodData);

            for (int i = 0; i < 100; i++)
            {
                sut.DoMove(9);
            }
            string actual = sut.CupsAfterOne();

            Assert.Equal("49725386", actual);
        }
Example #2
0
        public void Day23_Example_100_Moves_Ok()
        {
            string data = "389125467";

            var sut = new CrabCupsGame(data);

            for (int i = 0; i < 100; i++)
            {
                sut.DoMove(9);
            }
            string actual = sut.CupsAfterOne();

            Assert.Equal("67384529", actual);
        }