C++ BASIC TIC TAC TOE SOURCE CODE

Ukończone Opublikowano Dec 12, 2004 Płatność przy odbiorze
Ukończone Płatność przy odbiorze

Create a _class_ **TicTacToe** that will enable you to write s complete program to play the game of tic-tac-toe. The class contains as **private** data a 3-by-3 double array of integers. The constructor should initialise the empty board to all zeros. Allow two human players. Wherever the first player moves, place a '1' in the specified square; place a '2' wherever the second player moves. Each move must be to an empty square. After each move, determine if the game has been won or if the game is a draw. If you feel ambitious, modify your program so that the computer makes the moves for one of the players automatically. Also allow the player to specify whether he or she wants to go first or second.

Note: C++ provides a convenient way of getting hold of random numbers but you will need to include the library **stdlib**.

Using the function **rand** will genrate a number in the range 0 to 32, 767

i.e.

**Ran = rand ();

BRAND NEW CODE IS NOT NEEDED!

MOST OF THE SOURCE CODE IS PROVIDED IN THE ATTACHED TEXT FILE! ALL THAT IS NEEDED IS FOR SOMEONE WHO KNOWS WHAT THEY ARE DOING, TO ENTER A FEW BASIC FUNCTIONS!**

## Deliverables

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

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

4) The code to be delivered by the coder must be derived from the code supplied by the buyer in the text file attached. E.g. the coder must add the various and suitable functions to the supplied code in order to make the code work.

## Platform

Borland C++

Programowanie C Inżynieria MySQL PHP Architektura oprogramowania Testowanie oprogramowania

Numer ID Projektu: #3476327

O projekcie

12 ofert Zdalny projekt Aktywny Dec 12, 2004

Przyznany użytkownikowi:

kazhar

See private message.

$2 USD w ciągu 2 dni
(2 ocen)
0.3

12 freelancerów złożyło ofertę za $12 w tym projekcie

ardas

See private message.

$6.8 USD w ciągu 2 dni
(72 Oceny)
6.6
DFlor

See private message.

$25.5 USD w ciągu 2 dni
(25 Oceny)
6.2
bogdanstan

See private message.

$21.25 USD w ciągu 2 dni
(195 Oceny)
5.7
tgovw

See private message.

$4.25 USD w ciągu 2 dni
(23 Oceny)
5.2
mironbrezuleanu

See private message.

$6.8 USD w ciągu 2 dni
(6 Oceny)
2.5
BestWebPlan

See private message.

$25.5 USD w ciągu 2 dni
(2 Oceny)
2.1
cristi004

See private message.

$6.8 USD w ciągu 2 dni
(9 Oceny)
2.0
cezarboicu

See private message.

$8.5 USD w ciągu 2 dni
(2 Oceny)
1.6
softlogicvw

See private message.

$8.5 USD w ciągu 2 dni
(5 Oceny)
1.0
milojkovw

See private message.

$17 USD w ciągu 2 dni
(3 Oceny)
0.4
pasxp

See private message.

$17 USD w ciągu 2 dni
(0 Oceny)
0.0