lojix/search/src/main/com/thesett/aima/search/examples/eightpuzzle/EightPuzzleState.java
public String prettyPrint()
    {
        String result = "";

        for (int j = 0; j < 3; j++)
        {
            result += new String(board[j]) + "\n";
        }

        result = result.replace('E', ' ');

        return result;
    }
public String prettyPrint()
    {
        String result = "";

        for (int j = 0; j < 3; j++)
        {
            result += new String(board[j]) + "\n";
        }

        result = result.replace('E', ' ');

        return result;
    }
public String prettyPrint ( ) { String result = "" ; for ( int j = 0 ; j < 3 ; j ++ ) { result += new String ( board [ j ] ) + "\n" ; } result = result . replace ( ' ' , ' ' ) ; return result ; }
Pretty prints the board as 3 lines of characters with a space for the empty square.

@return A pretty printed string representation of this board position.
Pretty prints the board as 3 lines of characters with a space for the empty square .