9.1.6 Checkerboard V1 Codehs Free

rect.setColor(Color.WHITE);

// Determine the color based on parity if ((row + col) % 2 == 0) square.setFillColor(Color.GRAY); else square.setFillColor(Color.BLACK); 9.1.6 checkerboard v1 codehs

It looks like you are working on the assignment in the CodeHS Graphics course. In this assignment, you are typically asked to write a function called create_checkerboard that draws an 8x8 grid of alternating black and white squares. 9.1.6 checkerboard v1 codehs

Iterate through every row and column. Use an if statement to identify the top three and bottom three rows. 9.1.6 checkerboard v1 codehs