Question: (Game: display a tic-tac-toe board) Write a program that displays nine labels. Each label may display an image icon for an X or an image
(Game: display a tic-tac-toe board) Write a program that displays nine labels. Each label may display an image icon for an X or an image icon for an O, shown in Figure 9.25b. What to display is randomly decided. Use the random.randint(0, 1) function to generate an integer 0 or 1, which corre- sponds to displaying a cross image (X) icon or a not image (O) icon. The cross and not images are in the files x.gif and o.gif.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
