Beispiel #1
0
        static void Main(string[] args)
        {
            var game = new SnakesLadders();

            do
            {
                System.Console.WriteLine(game.play(2, 2));
            } while (System.Console.ReadLine() != "q");

            System.Console.ReadKey();
        }
Beispiel #2
0
        public void BasicTest1()
        {
            string result = test.play(1, 1);

            Assert.AreEqual("Player 1 is on square 38", result, "Should return: 'Player 1 is on square 38'");
        }
Beispiel #3
0
        public void Player1On38()
        {
            string result = Theory.play(1, 1);

            Assert.Equal("Player 1 is on square 38", result);
        }