Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2009, 12:28 AM
amr amr is offline
Member
 
Join Date: Mar 2009
Posts: 3
Rep Power: 0
amr is on a distinguished road
Default plz i need this program in 2 days .it`s tic tac toe game
Java Program that implements the TicTacToe game. The program should support the following interface:

class Player{
String name;
char symbol;

void setName (String pName)
String getName ()
void setSymbol (char symb)
char getSymbol (symb)
String toString()
}


class TicTacTaeBoard{
char [][] board ;
Player plyr1;
Player plyr2;
Player winner ;
byte turn; // 1 for player 1 or 2 for player 2
byte round; // from 1 to 9

/* constructor */
TicTacTaeBoard (Player p1, Player p2)


/* shows the name of the player to play, his symbol and game round.
Prompts the player to Enter his movement (row and column numbers)
if the movement is correct it records the movement and update the turn and the round, else it asks the player to retry. */
void play()


/* returns true if the board has a wining situation and false otherwise. */
boolean isWinSituation ()


/* returns a string representing the two player names, their symbols, the game round, the winner name (if there is a winner), and the board contents
*/
String toString()

}


Class TicTacTaeGame{
/* Runs the game as follows:
- Prompts the users to enter the two players names and symbols
- Instantiates an object for each of the two players and an object for the TicTacTaeBoard
- Invokes the play method of TicTacTaeBoard repetitively until the game ends (one of the players has won or game reached round 9) .
- Invokes the toString method to print the game result
*/
public static void main (String [] args)

}

and also 2 more conditions but in different classes:
1) Computer-to-computer game: Modify the program so it simulates automated games where the system defines two players and plays the game automatically. The system first chooses the first movement for each player randomly (use the Random API), then it continues playing following specific hard-coded rules.
2) Computer-to-player: Modify the program so it allows a player to play against the computer




thx alot
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 03-21-2009, 12:53 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,319
Rep Power: 8
Fubarable is on a distinguished road
Default
Quote:
plz i need this program in 2 days
You post your assignment and give us a due date? You've got to be farkin' kidding, right? This has to be a joke.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 03-21-2009, 01:01 AM
amr amr is offline
Member
 
Join Date: Mar 2009
Posts: 3
Rep Power: 0
amr is on a distinguished road
Default hey
i`m really sry ..i have exam on it and i need it so much sry again
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 03-21-2009, 01:06 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,319
Rep Power: 8
Fubarable is on a distinguished road
Default
So let me see if I have this correct. you have an exam on this, you don't know how to do it, and you're in effect asking someone else to do it for you so you can hand in their work as your own, correct? Have I left anything out?
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 03-21-2009, 01:14 AM
amr amr is offline
Member
 
Join Date: Mar 2009
Posts: 3
Rep Power: 0
amr is on a distinguished road
Default
no thx alot and sry again
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 03-21-2009, 01:18 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,319
Rep Power: 8
Fubarable is on a distinguished road
Default
OK, first of all, no one is going to help you cheat. If you don't know the subject, then drop the course.

If on the other hand, you know some basics, have already put in some work on this project and are willing to put in a lot more, there are plenty of people here willing to help you. But you can't expect any help by just dumping your assignment and givng a due date. What you must do is show all that you've done for this assignment so far, and then ask specific questions regarding your work. Do this, and I guarantee you'll get plenty of help. Up to you.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 03-24-2009, 05:40 AM
Xyle's Avatar
Member
 
Join Date: Feb 2009
Location: Nevada
Posts: 34
Rep Power: 0
Xyle is on a distinguished road
Default
Or at least offer some "farkin'" money for someone to do your work for you...


Geez, no respect these days!

Hehehehe, just kidding of course.

Your assignments due in 2 days and you dont have anything? At least check the internet search engines for java tic tac toe "tutorial".

I use search 50+ times a day to get info on functions, methods, structure, variable use, etc in the 4-5 hours a day I get to program in my hobby time. I will only ask for help when I cant figure out something and the internet search didnt give me any pointers.

A little bit of advice, if your not willing to put in some awesome amounts of keymashing, brain-smoking, tear-flowing hard time to get your own programming code to work, might want to look into doing something different.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 07-21-2009, 03:39 AM
Member
 
Join Date: Jul 2009
Posts: 8
Rep Power: 0
ramadread is on a distinguished road
Default
jajaja drop de course xdddd
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Game Program software_dude_2009 New To Java 3 02-22-2009 05:31 PM
Been stuck for days! any help would be appriciated... juddy1 New To Java 3 01-15-2009 04:43 AM
I want to fetch last 7 days records in java rasikow New To Java 3 12-05-2008 01:34 PM
No fo days between two dates Java Tip Java Tips 0 01-28-2008 10:06 AM
Implementing "Game Over" in Minesweeper game based on Gridworld framework. JFlash New To Java 0 11-16-2007 12:02 AM


All times are GMT +2. The time now is 09:33 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org