Tic-Tac-Toe 2.0
Classes | Defines

/media/OneTouch 4/Documents/CAO/SourceCode/TicTacToe v2.0/tictactoe.h File Reference

Engine for TicTacToe game. More...

Go to the source code of this file.

Classes

class  TicTacToe
 This class can managed a Tic-Tac-Toe game. The class allows basic operations like initializing the game, placing marks according to the rules, checking if the game is over, undo a move etc ... More...

Defines

#define EMPTY   0
 Value set in an empty cell.
#define CROSS   1
 Value used to describe the mark of the first player.
#define CIRCLE   2
 Value used to describe the mark of the second player.
#define DRAW   3
 Value used to describe a draw game.

Detailed Description

Engine for TicTacToe game.

Author:
Philippe Lucidarme
Version:
1.0
Date:
18 mars 2011

This class is an engine for the TicTacToe game

Definition in file tictactoe.h.


Define Documentation

#define CIRCLE   2

Value used to describe the mark of the second player.

Examples:
TicTacToe_Example.cpp.

Definition at line 24 of file tictactoe.h.

#define CROSS   1

Value used to describe the mark of the first player.

Examples:
TicTacToe_Example.cpp.

Definition at line 21 of file tictactoe.h.

#define DRAW   3

Value used to describe a draw game.

Examples:
TicTacToe_Example.cpp.

Definition at line 27 of file tictactoe.h.

#define EMPTY   0

Value set in an empty cell.

Definition at line 18 of file tictactoe.h.

 All Classes Files Functions Defines