added some comments in Piecetest
This commit is contained in:
		@@ -81,11 +81,37 @@ public void broadcast(ServerMessage message) {
 | 
			
		||||
        pieceHost2 = new Piece(hostColor,PieceState.ACTIVE,9);
 | 
			
		||||
        pieceHost3 = new Piece(hostColor,PieceState.ACTIVE,10);
 | 
			
		||||
 | 
			
		||||
        //set the Pieces here
 | 
			
		||||
        //set the Client-pieces here
 | 
			
		||||
        game.getBoard().setPieceOnBoard(25,pieceClient0); //for UC 02, 03.01, 14,4
 | 
			
		||||
        game.getBoard().setPieceOnBoard(); //TODo set piece in Home at 2 slot for UC 18,12,13,11
 | 
			
		||||
        game.getBoard().setPieceOnBoard(19,pieceClient2); //for UC 13, 15
 | 
			
		||||
        game.getBoard().setPieceOnBoard();
 | 
			
		||||
 | 
			
		||||
        //set the host-pieces here
 | 
			
		||||
        game.getBoard().setPieceOnBoard(28,pieceHost0); //for UC 02,14 ,15, 03.01,4
 | 
			
		||||
        game.getBoard().setPieceOnBoard(18,pieceHost1); //for UC 1, 10, 17, 16
 | 
			
		||||
        game.getBoard().setPieceOnBoard();//Todo set in home fur uc 5
 | 
			
		||||
        game.getBoard().setPieceOnBoard(0,pieceHost3); //for uc 9
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        //declare messages here
 | 
			
		||||
 | 
			
		||||
        //send the serverGameTurn
 | 
			
		||||
 | 
			
		||||
        //set the active color
 | 
			
		||||
        game.setActiveColor(clientColor);
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Tests the logic for when a piece moves.
 | 
			
		||||
     * <p>
 | 
			
		||||
     * Use Case UC-Piece-01: Ensure that a piece moves in the right direction
 | 
			
		||||
     * </p>
 | 
			
		||||
     */
 | 
			
		||||
    @Test
 | 
			
		||||
    public void testMove() {
 | 
			
		||||
        // TODO: Implement test logic for when a piece can't move
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user