Find Jobs
Hire Freelancers

C++ class for TicTacToe

$30-5000 USD

Completed
Posted over 20 years ago

$30-5000 USD

Paid on delivery
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
Project ID: 2954435

About the project

24 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$5 USD in 15 days
4.7 (17 reviews)
3.7
3.7
24 freelancers are bidding on average $18 USD for this job
User Avatar
See private message.
$12.75 USD in 15 days
5.0 (25 reviews)
6.2
6.2
User Avatar
See private message.
$11.05 USD in 15 days
4.9 (101 reviews)
5.1
5.1
User Avatar
See private message.
$17 USD in 15 days
5.0 (35 reviews)
4.6
4.6
User Avatar
See private message.
$42.50 USD in 15 days
4.6 (59 reviews)
4.4
4.4
User Avatar
See private message.
$8.50 USD in 15 days
4.8 (34 reviews)
4.4
4.4
User Avatar
See private message.
$12.75 USD in 15 days
4.9 (94 reviews)
4.3
4.3
User Avatar
See private message.
$46.75 USD in 15 days
5.0 (9 reviews)
4.1
4.1
User Avatar
See private message.
$17 USD in 15 days
4.9 (35 reviews)
3.8
3.8
User Avatar
See private message.
$5.10 USD in 15 days
4.7 (22 reviews)
3.4
3.4
User Avatar
See private message.
$12.75 USD in 15 days
4.6 (11 reviews)
3.1
3.1
User Avatar
See private message.
$12.75 USD in 15 days
5.0 (10 reviews)
2.8
2.8
User Avatar
See private message.
$12.75 USD in 15 days
5.0 (4 reviews)
2.6
2.6
User Avatar
See private message.
$42.50 USD in 15 days
5.0 (7 reviews)
2.5
2.5
User Avatar
See private message.
$38.25 USD in 15 days
4.9 (10 reviews)
2.5
2.5
User Avatar
See private message.
$12.75 USD in 15 days
4.7 (8 reviews)
2.5
2.5
User Avatar
See private message.
$10.20 USD in 15 days
4.5 (18 reviews)
2.4
2.4
User Avatar
See private message.
$6.80 USD in 15 days
5.0 (5 reviews)
1.9
1.9
User Avatar
See private message.
$8.50 USD in 15 days
5.0 (3 reviews)
1.3
1.3
User Avatar
See private message.
$51 USD in 15 days
5.0 (1 review)
1.3
1.3
User Avatar
See private message.
$10.20 USD in 15 days
5.0 (2 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
32
Member since Jul 12, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.