# Define square size square_size = 50
If (row + column) % 2 == 0 → Color A. If (row + column) % 2 == 1 → Color B.