public static void TestIsWinnerWhite1() { 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", "C7", Player.Black), true); Assert.True(game.IsWinner(Player.White)); }
public static void TestIsNotWinner() { RacingKingsChessGame game = new RacingKingsChessGame("4K3/2k5/8/8/8/8/1rbnNBR1/qrbnNBRQ b - - 11 6"); game.MakeMove(new Move("C7", "C8", Player.Black), true); Assert.False(game.IsWinner(Player.Black)); Assert.False(game.IsWinner(Player.White)); }
public static void TestIsWinnerWhite1() { 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", "C7", Player.Black), true); Assert.True(game.IsWinner(Player.White)); }
public static void TestIsWinnerBlack() { RacingKingsChessGame game = new RacingKingsChessGame("2k5/5K2/8/8/8/8/1rbnNBR1/qrbnNBRQ w - - 12 7"); Assert.True(game.IsWinner(Player.Black)); }
public static void TestIsWinnerBlack() { RacingKingsChessGame game = new RacingKingsChessGame("2k5/5K2/8/8/8/8/1rbnNBR1/qrbnNBRQ w - - 12 7"); Assert.True(game.IsWinner(Player.Black)); }