Em Andamento

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

Windows

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

Ver mais: tic tac, tic tac toe game, game playing, game board, c p, c game, program tic tac toe, tic tac toe code, game line, recall, player tic tac toe, playing game, type create game, tic tac toe type, type code win, platform game source code, row game code, row game source, create ready game, create board game, row game source code, program board game, game distribution, type player

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

ID do Projeto: #2961413

Premiar a:

vw821235vw

See private message.

$5 USD em 5 dias
(94 Avaliações)
4.3

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

vasilevalaiba

See private message.

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

See private message.

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