예제 #1
0
        public void PlayGame__Test6()
        {
            MarbleGame marbleGame = new MarbleGame();

            marbleGame.PlayGame(30, 5807);
            long highScore = marbleGame.GetHighScore();

            Assert.AreEqual(37305, highScore);
        }
예제 #2
0
        public void PlayGame__Test1()
        {
            MarbleGame marbleGame = new MarbleGame();

            marbleGame.PlayGame(9, 25);
            long highScore = marbleGame.GetHighScore();

            Assert.AreEqual(32, highScore);
        }
예제 #3
0
        public void PlayGame__Test5()
        {
            MarbleGame marbleGame = new MarbleGame();

            marbleGame.PlayGame(21, 6111);
            long highScore = marbleGame.GetHighScore();

            Assert.AreEqual(54718, highScore);
        }
예제 #4
0
        public void PlayGame__Test4()
        {
            MarbleGame marbleGame = new MarbleGame();

            marbleGame.PlayGame(17, 1104);
            long highScore = marbleGame.GetHighScore();

            Assert.AreEqual(2764, highScore);
        }
예제 #5
0
        public void PlayGame__Test3()
        {
            MarbleGame marbleGame = new MarbleGame();

            marbleGame.PlayGame(13, 7999);
            long highScore = marbleGame.GetHighScore();

            Assert.AreEqual(146373, highScore);
        }
예제 #6
0
        public void PlayGame__Test2()
        {
            MarbleGame marbleGame = new MarbleGame();

            marbleGame.PlayGame(10, 1618);
            long highScore = marbleGame.GetHighScore();

            Assert.AreEqual(8317, highScore);
        }
예제 #7
0
        public static long Puzzle1(int numPlayers, int lastMarble)
        {
            var mg = new MarbleGame(numPlayers);

            return(mg.PlayGame(lastMarble));
        }