public void anyJumpsTest() { var TheBoard = new CheckerBoard(); Debug.WriteLine(TheBoard); Assert.IsFalse(TheBoard.anyJumps()); TheBoard.MovePiece('b', 12, 16); TheBoard.MovePiece('w', 24, 20); TheBoard.MovePiece('b', 11, 15); TheBoard.MovePiece('w', 23, 19); TheBoard.MovePiece('b', 10, 14); TheBoard.MovePiece('w', 22, 18); TheBoard.MovePiece('b', 9, 13); TheBoard.MovePiece('w', 21, 17); TheBoard.RemovePiece(32); TheBoard.RemovePiece(29); Debug.WriteLine(TheBoard); //Assert.IsTrue(TheBoard.anyJumps()); var board = new CheckerBoard(); board.MovePiece('b', 10, 15); board.MovePiece('w', 24, 19); board.MovePiece('b', 15, 24); board.RemovePiece(19); board.MovePiece('w', 27, 20); board.MovePiece('b', 12, 16); Debug.WriteLine(TheBoard); Assert.IsFalse(TheBoard.anyJumps()); }
public void isItAJumpTest() { var TheBoard = new CheckerBoard(); Debug.WriteLine(TheBoard); TheBoard.MovePiece('b', 10, 15); TheBoard.MovePiece('w', 24, 19); Debug.WriteLine(TheBoard); Assert.IsTrue(TheBoard.isItAJump(15, 24)); }