Tic-Tac-Toe

Project #1

create a Tic-Tac-Toe game.

The user plays against the computer (your program).

The link Introductory Problem - Tic Tac Toe has a complete design for the game. Can you code it?

To Create Your Own Design

0. Do your research before coding. Start with the links below.

1. Develop the rules the computer uses to play the game.

2. Print the game board or create a GUI to display the game board.


   |   |
---+---+---
   |   |
---+---+---
   |   |

Hint: The internal data structures do not need to resemble the game board. They should support/simplify the game rules code. Displaying the game board is secondary.

Graphics.py

If creating a GUI, try using graphics.py. It is a simple graphics library. Click HERE for more information. (download, install, documentation, ...)

Links

How to Win at Tic Tac Toe

Tic-tac-toe (Wikipedia)

Project #2

Create a 3D Tic-Tac-Toe game.

Perhaps just come up with a plan (design) for one. For example, the user interface, internal data structures, display game board, ...