Results 1 to 8 of 8
  1. #1
    amr
    amr is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    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

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    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.

  3. #3
    amr
    amr is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default hey

    i`m really sry ..i have exam on it and i need it so much sry again

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    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?

  5. #5
    amr
    amr is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default

    no thx alot and sry again

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    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.

  7. #7
    Xyle's Avatar
    Xyle is offline Member
    Join Date
    Feb 2009
    Location
    Nevada
    Posts
    34
    Rep Power
    0

    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.

  8. #8
    ramadread is offline Member
    Join Date
    Jul 2009
    Posts
    8
    Rep Power
    0

Similar Threads

  1. Replies: 8
    Last Post: 01-06-2011, 06:33 PM
  2. Replies: 2
    Last Post: 08-05-2010, 04:49 AM
  3. Java Game Program
    By software_dude_2009 in forum New To Java
    Replies: 3
    Last Post: 02-22-2009, 04:31 PM
  4. I want to fetch last 7 days records in java
    By rasikow in forum New To Java
    Replies: 3
    Last Post: 12-05-2008, 12:34 PM
  5. No fo days between two dates
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-28-2008, 09:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •