Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,875 members, 7,956,303 topics. Date: Monday, 23 September 2024 at 09:32 AM |
Nairaland Forum / Science/Technology / Programming / Pls Help Ohhhhh (822 Views)
Pls Help Ohhhhh by joycej(f): 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)
C++ / Help!! Pls How Do I Create A Database With Mysql / You Need To See This! An Android Social App From Nigeria.
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8 |