Create a C++ class called TicTacToe for use in playing the game tic-tac-toe. Recall that the game is played on a 3 x 3 board, where every square is either empty, or contains an “X?? or an “O??. The game is won when there are three "X" s or "O" s in a straight line, either in the same column, the same row, or the two diagonals. The game is a stalemate when the board has no empty squares, but neither X nor O has won. The following includes references to an enumerated type player, defined as: Enum Player {X, O, empty}; The C++ class must have the public methods of: TicTacToe: (constructor) This initializes the board, which means it sets all the positions to empty, and makes the board ready for use. void Place(P, Column, Row): A method that takes a player “P?? and sets the Column and Row of the board to be Player “P??. int Win(P): A function that returns 1 (one) if Player “P?? wins the game, and 0 (zero) otherwise. int Stalemate(): A function that returns 1 (one) if the board represents a game in stalemate, and 0 (zero) otherwise.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
## Platform
BORLAND C++ VERSION 5.02