Libraries & Tkinter
In the first week, you were introduced to state. In the second week, you were introduced to iteration, one of the more difficult programming constructs to grasp. In the third week, we discussed another programming construct: selection. In week four, we reinforced these topics while incorporating file handling. In week five, we used functions to produce organised, maintainable solutions. This week, we have started to look at creating programs that use graphics.
In this week's lab, we will use Tkinter, the GUI framework built into the Python standard library, to create a simple noughts and crosses game.
If you think you can build this game without assistance, try this now. Use the images in the images.zip (Click here to download!) file to represent empty squares, squares selected by each player and a 'Winner' screen.
If you would like some assistance, then work through this lab script. By the end, you will have created your own noughts and crosses game!