Tic Tac Toe

The program is a tic-tac-toe program. You are going to write a simple interface, and build the AI for the computer.

Make sure to use objects to design this program, part of your grade will be based on this. We will make some future modifications to this code, so good design will make the code much easier to maintain and extend. We will talk about this in class as well.

Your AI should be capable of getting a tie/cat game every time. If you can't figure it out on your own, you should have no problems finding the logic for it ( google is your friend ).

All your I/O needs to be done indirectly using a stream reference. This will allow us to replace the stream easily if we want a different I/O target.

Here is a sample run from mine.

This program is due on April 9th.

The Goals