Esempio n. 1
0
        public void FindSolutionToPart1()
        {
            var game = new MarbleGame(441);

            (int winner, long score) = game.Play(71032);

            Assert.That(score, Is.EqualTo(393229));
        }
Esempio n. 2
0
        public void FindSolutionToPart2()
        {
            var game = new MarbleGame(441);

            (int winner, long score) = game.Play(7103200);

            Assert.That(score, Is.EqualTo(3273405195L));
        }
Esempio n. 3
0
        public long TestChecksum(int players, int lastMarbleValue)
        {
            var game = new MarbleGame(players);

            (int winner, long score) = game.Play(lastMarbleValue);

            return(score);
        }