Exemplo n.º 1
0
        public void Simple_4_1()
        {
            Player.Board board = new Player.Board(new Player.PositionState[, ] {
                { Player.PositionState.Player, Player.PositionState.Player, Player.PositionState.Player },
                { Player.PositionState.Player, Player.PositionState.Free, Player.PositionState.Free },
                { Player.PositionState.Free, Player.PositionState.Free, Player.PositionState.Free },
            }, null);

            var result = board.NumberOfPlayerSpaces();

            Assert.Equal(4, result);
        }
Exemplo n.º 2
0
        public void Simple_0_3()
        {
            Player.Board board = new Player.Board(new Player.PositionState[, ] {
                { Player.PositionState.Free, Player.PositionState.Free, Player.PositionState.Free },
                { Player.PositionState.Opponent, Player.PositionState.Opponent, Player.PositionState.Opponent },
                { Player.PositionState.Opponent, Player.PositionState.Opponent, Player.PositionState.Opponent },
            }, null);

            var result = board.NumberOfPlayerSpaces();

            Assert.Equal(0, result);
        }