src/test/java/com/webcheckers/model/GameMoveTest.java
/**
     * printBoard prints a boardView to the console
     * 
     * @param boardView the boardView to print
     */
printBoard prints a boardView to the console

@param boardView the boardView to print
printBoard prints a boardView to the console @param boardView the boardView to print
private void printBoard(BoardView boardView) {
        System.out.println(" 01234567");
        for (int i = 0; i <= 7; i++) {
            System.out.print(i);
            for (int j = 0; j <= 7; j++) {
                Space space = boardView.getSpace(i, j);
                Piece piece = space.getPiece();
                if (piece == null) {
                    System.out.print("_");
                } else if (piece.color == Piece.PieceColor.WHITE && piece.type == Piece.PieceType.SINGLE) {
                    System.out.print("w");
                } else if (piece.color == Piece.PieceColor.WHITE && piece.type == Piece.PieceType.KING) {
                    System.out.print("W");
                } else if (piece.color == Piece.PieceColor.RED && piece.type == Piece.PieceType.SINGLE) {
                    System.out.print("r");
                } else if (piece.color == Piece.PieceColor.RED && piece.type == Piece.PieceType.KING) {
                    System.out.print("R");
                }
            }
            System.out.println();
        }
    }
private void printBoard ( BoardView boardView ) { System . out . println ( " 01234567" ) ; for ( int i = 0 ; i <= 7 ; i ++ ) { System . out . print ( i ) ; for ( int j = 0 ; j <= 7 ; j ++ ) { Space space = boardView . getSpace ( i , j ) ; Piece piece = space . getPiece ( ) ; if ( piece == null ) { System . out . print ( "_" ) ; } else if ( piece . color == Piece . PieceColor . WHITE && piece . type == Piece . PieceType . SINGLE ) { System . out . print ( "w" ) ; } else if ( piece . color == Piece . PieceColor . WHITE && piece . type == Piece . PieceType . KING ) { System . out . print ( "W" ) ; } else if ( piece . color == Piece . PieceColor . RED && piece . type == Piece . PieceType . SINGLE ) { System . out . print ( "r" ) ; } else if ( piece . color == Piece . PieceColor . RED && piece . type == Piece . PieceType . KING ) { System . out . print ( "R" ) ; } } System . out . println ( ) ; } }
printBoard prints a boardView to the console
printBoard prints a boardView to the console