9.1.7 Checkerboard V2 Codehs __hot__

# Move to the next column position pen.forward(square_size)

for (int row = 0; row < NUM_ROWS; row++) for (int col = 0; col < NUM_COLS; col++) double x = col * sqWidth; double y = row * sqHeight; 9.1.7 Checkerboard V2 Codehs

// Constants for easy modification (Always use constants in V2!) const BOARD_SIZE = 400; const SQUARE_SIZE = BOARD_SIZE / 8; // 50px const COLOR_A = "red"; const COLOR_B = "black"; # Move to the next column position pen

# Move to the next column position pen.forward(square_size)

for (int row = 0; row < NUM_ROWS; row++) for (int col = 0; col < NUM_COLS; col++) double x = col * sqWidth; double y = row * sqHeight;

// Constants for easy modification (Always use constants in V2!) const BOARD_SIZE = 400; const SQUARE_SIZE = BOARD_SIZE / 8; // 50px const COLOR_A = "red"; const COLOR_B = "black";