Convention for naming locations on the chessboard

In order to assign unique identifiers to every square on the chessboard, we will mark the squares along the x axis by using the letters A to H. We will mark the y axis by using the numbers 1 to 8.

Accordingly, the squares on the chessboard will be identified as follows:

Thus, A1 denotes the leftmost square at the bottom of the chessboard. Currently, it is occupied by a white rook. The C3 position is currently empty, E8 has a black king, and A8 has a black rook.

Let's add this to the configurations.py file (see 4.02):

X_AXIS_LABELS = ('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H')Y_AXIS_LABELS = (1, ...

Get Tkinter GUI Application Development Blueprints - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.