Pset03/Game Of Fifteen.cpp
void draw(const int d , int board[][d])
{
    for (int r = 0 ; r < d ; r ++)
    {
        for (int c = 0 ; c < d ; c++)
        {
            if(board[r][c])
            printf("%2d ",board[r][c]);
            else
            printf("   ");
        }
        printf("\n");
    }

}
/**
 * Prints the board in its current state.
 */
Prints the board in its current state.
Prints the board in its current state .
void draw(const int d , int board[][d])
{
    for (int r = 0 ; r < d ; r ++)
    {
        for (int c = 0 ; c < d ; c++)
        {
            if(board[r][c])
            printf("%2d ",board[r][c]);
            else
            printf("   ");
        }
        printf("\n");
    }
}
void draw ( const int d , int board [ ] [ d ] ) { for ( int r = 0 ; r < d ; r ++ ) { for ( int c = 0 ; c < d ; c ++ ) { if ( board [ r ] [ c ] ) printf ( " " , board [ r ] [ c ] ) ; else printf ( " " ) ; } printf ( " \n " ) ; } }
Prints the board in its current state.
Prints the board in its current state .