(even vs. odd). By tracking the current row number and column number, the program can decide whether to place a marker based on the following rule: If the sum of the (Row + Column) is , place a beeper. If the sum is , leave the space empty.
This essay explores the logic and implementation of the Checkerboard V2 challenge in the CodeHS 9.1.7 curriculum
: If your class extends ConsoleProgram , you’re looking at the wrong exercise. Checkerboard V2 is almost always graphics-based. 9.1.7 Checkerboard V2 Codehs
For the CodeHS exercise 9.1.7: Checkerboard, v2 , the objective is to create an grid where the values alternate between in a checkerboard pattern.
public class CheckerboardV2 extends GraphicsProgram (even vs
