Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+6 votes
asked in old_CSC201 by (1 point)

1 Answer

+2 votes

First, an image has been added to the problem which may help visualize the chessboard.

Second for a strategy, I would identify the most restrictive type of position first. That's the corners. There are only 4 of those. After that, the borders. Finally, if a position isn't a corner or a border, it must be on the inside. If you compare in that order, then you don't need a comparison for the inside. The inside is the else case.

answered by (1 point)
...