Question: in python ( image should be defined or imported ) 9.6 (Game: display a tic-tac-toe board) Write a program that displays nine labels. Each label
9.6 (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, as 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 corresponds 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. (D) - x and o images are attached. - Run your code twice and submit screenshots of your results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
