V1 Codehs Fixed: 916 Checkerboard
Fixed: 916 Checkerboard v1 (CodeHS) I tracked down a bug in the 916 Checkerboard v1 assignment on CodeHS and pushed a fix. The issue affected pattern alignment when the board width was odd — squares were shifting on every other row. Changes made:
Many users encounter a "red" error in the autograder stating: "You should set some elements of your board to 1; You will need to use an assignment statement.". This occurs because: 916 checkerboard v1 codehs fixed
Common errors & fixes:
-
# Move to the next column position
t.penup()
t.goto(current_x + (j + 1) * SIZE, current_y - i * SIZE)
t.pendown()
Typical Goal of "916 Checkerboard v1" (CodeHS)
You’re usually asked to create a checkerboard pattern (alternating black and red squares) using a graphics library (like
graphics.pyor JavaScript’sGraphicsin CodeHS). Fixed: 916 Checkerboard v1 (CodeHS) I tracked downThe autograder often fails if you simply print "1" or use a shortcut. To pass, you must: Initialize an 8x8 grid filled with
0. Loop through the rows and columns. Update specific elements to1usingboard[i][j] = 1. Fixed Python Code # Move to the next column position t