Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display drive driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Java Help!!


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
dublin05's Avatar
Junior Member with 1 posts.
 
Join Date: Dec 2005
Experience: Beginner
16-Dec-2005, 11:20 AM #1
Java Help!!
I am trying to create a class TicTacToe that will enable me to write a complete progam to play Tic Tac Toe. The class contains a private 3 by 3 dimensional array of intergers. The constructor should initialize the empty board to all zeros. Allow two players. Whenever the first player moves, place a 1 in the specified square, and place a 2 wherver the second player moves. Each move must be to an empty square. After each move, determine whether the game has been won and whether it is a draw.

Any help would be greatly appreciated!

Dominic

b
blaqDeaph's Avatar
Senior Member with 869 posts.
 
Join Date: Nov 2005
Location: Down Under!
Experience: Enough
18-Dec-2005, 02:30 AM #2
YAHQ (Yet another homework question)?

Think of all the variables that you must have (the actual board, move number, whose move)
Think of the processes that you can do (check if win, check if draw, make a move)
Think of a way to represent moves on the 3x3 board.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:21 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.