Find Jobs
Hire Freelancers

Create Tic Tac Toe Program Using Java

$10-30 USD

In Progress
Posted over 4 years ago

$10-30 USD

Paid on delivery
Build a simple Tic-Tac-Toe game (Xs and Os). The game should be drawn using the StdDraw class (attached file) and the users should click on the window using the mouse input (also in the StdDraw library) to select their squares each turn. The game should maintain a valid board at all times and report a winner/loser/tie at the end of the game (correctly determining when the game has ended). The game should be played by 2 human players (you don't need to do a computer AI player for this program). Assume the two players are taking turns and clicking on their chosen squares. Only mark the board with the player's symbol according to their turn, when they click on an empty square. You can mark the squares however you like, just use 2 distinct markings (like the traditional X and O, for example). Notes: + You will need to keep track of which squares are occupied (and by which player) and which squares are available. One possibility is a two-dimensional array (3x3) of integers. A value of 0 could be empty, a value of 1 could be player 1, and a value of 2 could be player 2. + Starting with the 5th turn (player 1's third turn) you should start checking to see if the current player wins with their turn. As soon as a win is detected (3 in a row, 3 in a column, 3 in a diagonal), the game is over. Print a message or mark the board to show this, and do not allow any further turns. + After 9 turns the game is over, either with player 1 getting a win on their last (5th) turn or with no winner, a draw. Print a message or mark the board to show this, and do not allow any further turns. + Create your program in stages. Start by making the board. Then work on marking squares with clicks and keeping track of the turns. Then start looking to detect wins and draws.
Project ID: 22618410

About the project

8 proposals
Remote project
Active 4 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
8 freelancers are bidding on average $25 USD for this job
User Avatar
As a full time java developer since 2010 I can help you with your board game. The requirements are clear.
$30 USD in 2 days
5.0 (83 reviews)
5.6
5.6
User Avatar
Hey, I am an experienced Java developer and have written a console blackjack and a tic-tac-toe game using JavaFX among other projects before. I can create the game you described within a short amount of time. Feel free to get in contact with me to discuss this further. Kind regards, Thorben
$25 USD in 2 days
5.0 (24 reviews)
4.1
4.1
User Avatar
let's do it NOW .
$20 USD in 1 day
5.0 (15 reviews)
3.8
3.8
User Avatar
Hi sir I am interested to work with you. I can provide you professional web design services. I can design for you according to your requirements. I will give you unlimited revision until you will not satisfy for your design.I will deliver you this according to your time frame after your award. I can assure you several things. * I have expertise in Twitter Bootstrap, Angularjs, HTML5/CSS3, Php, java se,j2ee.... * I have a great web development sense. * Well organized and clean code easy to understand. * Validate according to w3c standards. * I can start it immediately. * Compatible with all modern browsers and mobile devices. Looking forward to hearing from you soon. Thank
$10 USD in 2 days
4.8 (14 reviews)
3.7
3.7
User Avatar
Hello Thanks for your posting. I am a senior developer so i can do it very easily if you want.I’ve read your job description carefully and I am very interested in your project. I am sure that I can finish this project of 100% result in short time with the reasonable budget
$55 USD in 1 day
4.9 (13 reviews)
3.8
3.8
User Avatar
I am Just doing coding and build a awasome tic toe game. this game having multiple player to play this game.
$30 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello greeting This is me kashif Hussain I am a C++, C#, python, java, developer I have a code in my system which you are asking? Contact me for more details... Thanks
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
BEACH PARK, United States
0.0
0
Payment method verified
Member since Nov 30, 2019

Client Verification

Other jobs from this client

Java number set program
$10-30 USD
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) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
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.