• Email Us
  • Call Us8660468132
  • FeedbackComplain

9.1.7 Checkerboard V2 Answers |top|

# Usage board = Checkerboard() board.print_board()

: The outer loop ( i ) iterates through the 8 rows, while the inner loop ( j ) iterates through the 8 columns for each row.

: The outer loop tracks the row index, while the inner loop tracks the col index to access every individual element in the 2D list.

square.setBorderColor(Color.WHITE);

A: No. Some versions of 9.1.7 use black and gray. If the sample image shows gray, replace Color.RED with Color.GRAY .

# Usage board = Checkerboard() board.print_board()

: The outer loop ( i ) iterates through the 8 rows, while the inner loop ( j ) iterates through the 8 columns for each row.

: The outer loop tracks the row index, while the inner loop tracks the col index to access every individual element in the 2D list.

square.setBorderColor(Color.WHITE);

A: No. Some versions of 9.1.7 use black and gray. If the sample image shows gray, replace Color.RED with Color.GRAY .