Tic-Tac-Toe 2.0

Tic-Tac-Toe class

[Download]


The class TicTacToe manages a 3x3 Tic-Tac-Toe game.

xo.jpg

The class allows basic operations like :

Author:
Philippe Lucidarme
Date:
19 mars 2011
Todo:

Currently, the game is only for a 3x3 grid. It can be extended to an NxN game.

Using an enumaration type for the elements of the game would be better

Returning a string in the function DrawGame would be better

Cells are currently numerized from 0 to 9, two dimentionnal identification of the cell would be easier for the user.

Change the image for a swd image made

Version:
1.0
 All Classes Files Functions Defines