If you would like to create checkerboard you may use following code:
# Loop through each row for row in range(8): # Loop through each column for col in range(8): # Calculate the color of the square if (row + col) % 2 == 0: fill(WHITE) else: fill(BLACK) 916 checkerboard v1 codehs fixed
Always use i < board.length for the outer loop and j < board[i].length for the inner loop. If you would like to create checkerboard you