set canvas size (e.g., 400x400) squareSize = canvasWidth / 8
The assignment is a rite of passage for Java students. The key to success is understanding the relationship between row/column indices and color parity. Remember the golden rule: (row + col) % 2 == 0 for one color, odd for the other. 9.1.7 checkerboard v2 answers
Do you need help with the version or a different CodeHS module? set canvas size (e