square: first the file, a letter from a to h, then the rank, a digit from 1 to 8.
The corner square a1 is dark, and squares sharing a side always have opposite colors. Return True if square is light and False if it is dark.square='d1' → True
The white queen starts the game on d1, which is a light square.
square='h8' → False
h8 sits on the same long diagonal as a1, so it is dark.
square='c4' → True
square='d1'
True
Run checks the first 3 tests in your browser. Submit checks all 67 tests on the server, hidden ones included.