|
-
In this program you will create the popular game called
Tic Tac Toe. In this game the player tries to beat the
computer in a game of Tic Tac Toe. Beware, this program
has just a touch of AI. Your program will:
-
Use user defined functions to carry out repetitive tasks.
-
Keep track of moves made and available moves.
-
Write the instructions for the computer to use to make a move.
-
Loop until the computer wins, the human wins or there is a tie.
-
Congratulate the player when the player gets the right answer.
-
Use embedded functions and functions that pass arguments.
-
As with the last problem, you can use the discussion on this problem
in the back of the chapter, but you cannot use any of their variables
(you must create your own variables). And as an added bonus, now that
you know how to create functions, you must not use the same function
names that are in the book (you must create your own function names).
-
Save your program to a file and take a screenshot of the output after
you have run your program. You will have 2 files that you will send as
attachments to your email.
(DO NOT COPY AND PASTE YOUR CODE, PROGRAM(S) OR SCREENSHOTS INTO
THE BODY OF THE EMAIL. THIS WILL RESULT IN A GRADE OF ZERO !)
Make sure to include your name and the assignment number you are
emailing.
|