If you do look, though, probably the best hint I can give you is that the data structure
used to represent board state is the crux of the matter. That is, if you understand the
way boards are modeled, the rest of the code comes naturally.
For instance, the lists-based variant uses a list-of-lists to represent the board’s state,
along with a simple dictionary of entry widgets for the GUI indexed by board coordi-
nates. Clearing the board after a game is simply a matter of clearing the underlying data
structures, as shown in this code excerpt from the examples named earlier:
Figure 11-26. PyToe help pop up with options info
764 | Chapter 11: Complete GUI Programs