public class Chessboard{
public static void main(String args[]){
//read the numbers of square from command-line
int n = Integer.parseInt(args[0]);

// double x0,x1,y0,y1,;

//Reset the scales on both axis
StdDraw.setXscale(0.0 , 8.0);
StdDraw.setYscale(8.0, 0.0);

//Draw the (boundary of) chess board.
// StdDraw.line....
StdDraw.line(0.0,0.0,1.0,0.0);
StdDraw.line(0.0,1.0,1.0,1.0);
StdDraw.line(0.0,0.0,0.0,1.0);
StdDraw.line(1.0,0.0,1.0,1.0);

//Draw sqaures on the chess board
StdDraw.square(0.0, 0.5 ,0.0 );
StdDraw.square(0.5, 0.5 ,0.5 );

StdDraw.filledSquare(1.5, 0.5, 0.5);
StdDraw.text(0.5 , 0.5 , "W");
StdDraw.setPenColor(StdDraw.WHITE);
StdDraw.text(1.5 , 0.5, "B");

for(int i = 0; i<n ; i++) {
for(int j =0; j<n ; j++) {

// Draw squares based on whether the sum of
// their row and colomn is even or odd.


if(( i % == 1) && (j % == 1)){

//draw odd sqaure
}
else {
//draw even sqaure
}
}
}


//send output to screen and file
StdDraw.show();
StdDraw.save("chessboard.png");

}
}