![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Dec 2005
Posts: 1
OS: XP
|
Help with Java!!!
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 |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Registered User
Join Date: Apr 2005
Posts: 10
OS: Windows XP Professional SP2
|
Exactly what kind of problem are you having?
If you're not sure how to implement the ai for playing tic-tac-toe, this tutorial describes a fair method: http://edais.mvps.org/Tutorials/TTTAI/ |
|
|
|
![]() |
| Thread Tools | |
|
|