916 Checkerboard V1 Codehs Fixed __link__ -

To build a checkerboard, you have to tell the computer to do two things simultaneously: Place circles from left to right.

(rightIsClear()) turnRight(); move(); turnRight(); 916 checkerboard v1 codehs fixed

Many students try to use (i + j) % 2 to create a "true" alternating checkerboard pattern. While that is how real checkers look, specifically asks for solid blocks of 1s at the top and bottom with a gap in the middle. To build a checkerboard, you have to tell

Now, loop through the rows and columns. According to the instructions, you need 1s in the top three rows (indices 0, 1, 2) and the bottom three rows (indices 5, 6, 7). To get that alternating checkerboard look, use the modulus operator Now, loop through the rows and columns

# WHILE LOOP VERSION (Fixed) import turtle

Forgetting to "flip" the color starting point for every other row. The Fixed Code (JavaScript/Karel)