C++ Game Class

Create a class called Board 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}; Your class should have the following public methods: Board: (constructor) This initializes the board, which means it sets all the positions to empty and does all else necessary to make the board ready for use. void Place(P, Column, Row): A procedure 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 if Player P has won the game, and 0 otherwise. int Stalemate(): A function that returns 1 if the board represents a game in stalemate, and 0 otherwise. You do not have to write a complete program that plays the game. However, you should include a short program that adequately tests all the operations of the class.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 3) Complete ownership and distribution copyrights to all work purchased.

## Platform


Habilidades: Programação C, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Veja mais: tic-tac, tic tac, Tic tac toe Game, tic tac toe c, Game playing, game board, c++-game, c++ p, c p, C game, c # game, program tic tac toe, tic tac toe code, source code tic tac toe, game line, tic tac toe source code, class work, recall, player tic tac toe, Playing game, type create game, tic tac toe type, tic tac toe game code, class function create, type code win

Acerca do Empregador:
( 6 comentários ) United States

ID do Projeto: #2961413

Concedido a:


See private message.

$5 USD em 5 dias
(94 Comentários)

3 freelancers estão ofertando em média $10 para esse trabalho


See private message.

$8.5 USD in 5 dias
(9 Comentários)

See private message.

$17 USD in 5 dias
(7 Comentários)