O'Reilly logo

Tkinter GUI Application Development Blueprints - Second Edition by Bhaskar Chaudhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required