Board.java
/*
     * Description: draws the entire board (using the Cell[][] field), with x and y
     * coordinates based on i and j indices of cells in the cells array. Calls the
     * draw() function in the Cell class for each cell on the board.
     * Input: N/A, only called on a Board object and draws using PennDraw functions
     * in the Cell class.
     * Output: N/A, only draws cells on the board, no epxlicit output.
     */
draws the entire board (using the Cell[][] field), with x and y
coordinates based on i and j indices of cells in the cells array. Calls the
draw() function in the Cell class for each cell on the board.
Input: N/A, only called on a Board object and draws using PennDraw functions
in the Cell class.
Output: N/A, only draws cells on the board, no epxlicit output.
draws the entire board ( using the Cell [] [] field ) with x and y coordinates based on i and j indices of cells in the cells array . Calls the draw () function in the Cell class for each cell on the board . Input : N / A only called on a Board object and draws using PennDraw functions in the Cell class . Output : N / A only draws cells on the board no epxlicit output .
private void draw() {
        PennDraw.clear(150, 150, 150);
        PennDraw.setXscale(0, 9);
        PennDraw.setYscale(0, 9);
        for (int i = 0; i < cells.length; i++) {
            for (int j = 0; j < cells[0].length; j++) {
                cells[i][j].xSet(i);
                cells[i][j].ySet(j);
                cells[i][j].draw();
            }
        }
    }
private void draw ( ) { PennDraw . clear ( 150 , 150 , 150 ) ; PennDraw . setXscale ( 0 , 9 ) ; PennDraw . setYscale ( 0 , 9 ) ; for ( int i = 0 ; i < cells . length ; i ++ ) { for ( int j = 0 ; j < cells [ 0 ] . length ; j ++ ) { cells [ i ] [ j ] . xSet ( i ) ; cells [ i ] [ j ] . ySet ( j ) ; cells [ i ] [ j ] . draw ( ) ; } } }
Description: draws the entire board (using the Cell[][] field), with x and y
 coordinates based on i and j indices of cells in the cells array.
Description : draws the entire board ( using the Cell [] [] field ) with x and y coordinates based on i and j indices of cells in the cells array .