public static void TestIsStalematedWhite() { RacingKingsChessGame game = new RacingKingsChessGame("4r3/6K1/8/1k3qb1/8/8/8/3n4 w - - 0 18"); Assert.True(game.IsStalemated(Player.White)); Assert.True(game.IsDraw()); }
public static void TestIsWinnerWhite2() { RacingKingsChessGame game = new RacingKingsChessGame("5K2/1k6/8/8/8/8/1rbnNBR1/qrbnNBRQ b - - 11 6"); Assert.False(game.IsWinner(Player.White)); game.ApplyMove(new Move("B7", "B8", Player.Black), true); Assert.False(game.IsWinner(Player.White)); Assert.True(game.IsDraw()); }
public static void TestIsWinnerWhite2() { RacingKingsChessGame game = new RacingKingsChessGame("5K2/1k6/8/8/8/8/1rbnNBR1/qrbnNBRQ b - - 11 6"); Assert.False(game.IsWinner(Player.White)); game.MakeMove(new Move("B7", "B8", Player.Black), true); Assert.False(game.IsWinner(Player.White)); Assert.True(game.IsDraw()); }