public void Should_GenerateOneMoveEast() { // execute ChessPosition position = _mover.East(ChessPosition.B1); // verify Assert.AreEqual(ChessPosition.C1, position); }
private void GenerateEastMoves(IBoardState boardState, IChessPieceMover cpm) { ChessPosition nextMove = cpm.East(Location); if (!boardState.Contains(nextMove)) { MoveSet.Add(nextMove); } }
private void GenerateEastNorthEastMove(IBoardState boardState, IChessPieceMover cpm) { ChessPosition move = cpm.East(cpm.NorthEast(Location)); if (!boardState.Contains(move)) { MoveSet.Add(move); } }
private void GenerateEastCaptures(IBoardState enemyBoardState, IChessPieceMover cpm) { ChessPosition capture = cpm.East(Location); AddCaptureToCaptureSet(capture, enemyBoardState); }