Example #1
0
        public void TestWhiteKingInCenter()
        {
            KingOfTheHillChessGame game = new KingOfTheHillChessGame("rnbqkbnr/ppp2ppp/8/4p3/4K3/8/PPPP1PPP/RNBQ1BNR b kq - 0 4");

            Assert.True(game.IsKingInCenter(Player.White));
            Assert.False(game.IsKingInCenter(Player.Black));
            Assert.True(game.IsWinner(Player.White));
        }
        public void TestWhiteKingInCenter()
        {
            KingOfTheHillChessGame game = new KingOfTheHillChessGame("rnbqkbnr/ppp2ppp/8/4p3/4K3/8/PPPP1PPP/RNBQ1BNR b kq - 0 4");

            Assert.True(game.IsKingInCenter(Player.White));
            Assert.False(game.IsKingInCenter(Player.Black));
            Assert.True(game.IsWinner(Player.White));
        }