9.1.6 Checkerboard V1 Codehs |best| -
The most common mistake is simply "cheating" the output with a print statement. The CodeHS autograder specifically checks for (e.g., board[i][j] = 1 ). If you don't use these, you'll see a red error message: "You should set some elements of your board to 1." .
If the remainder is 0 , the position is even, and it applies COLOR_ONE . 9.1.6 checkerboard v1 codehs
Proof of correctness:
To achieve this, the program must evaluate the position of each cell based on its row and column indices. Key Programming Concepts Used The most common mistake is simply "cheating" the
: While some solutions suggest nested loops to alternate 1s and 0s (like a real chessboard), "v1" usually only requires filling entire rows with 1s or 0s. Check your specific assignment instructions to see if alternating columns are required. Autograder Errors If the remainder is 0 , the position
set canvas size (e.g., 400 x 400) set number of rows/cols = 8 square_size = canvas_width / 8