₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,980 members, 8,419,793 topics. Date: Wednesday, 03 June 2026 at 10:37 PM

Toggle theme

Pls Help Ohhhhh - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingPls Help Ohhhhh (861 Views)

1 Reply (Go Down)

Pls Help Ohhhhh by joycej(op): 11:36am On Jan 17, 2011
Create a class TicTacToe that will enable you to write a 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 initialize 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 whether the game has been won and
whether 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. If you feel exceptionally ambitious, develop a program that will play
three-dimensional Tic-Tac-Toe on a 4-by-4-by-4 board [Note: This is a challenging project that could
take many weeks of effort!].
Re: Pls Help Ohhhhh by kanirip: 2:00pm On Jan 17, 2011
I like the fact that you had earlier posted a programming question( which looked like an assignment) and presented not one single description of the problem in your own words, which obviously had no responses but yet had the temerity to ask ANOTHER question with no personal input, just a word-by-word definition of the assignment and then proceed to ask for help and expect a different outcome.
Re: Pls Help Ohhhhh by Bossman(m): 7:16pm On Jan 18, 2011
Joyce_j, where are you running into problems. Do you have specific questions, and what have you done so far? Please post more information so that we know how to help you.
Re: Pls Help Ohhhhh by dee5(m): 5:06pm On Jan 20, 2011
also mention the preferred language for this your tic-tac-toe program, e.g java?, python?, c++, php?, e.t.c
1 Reply

234

I Am Programming Using Both Vb And Office Application.Guys, Please Help With Final Year Project Suggestions!!Game Developers: What Are The Games You've Built? Web Or Mobile.