Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Uml diagram...

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Uml diagram...

    Guys i need a little bit of help I am Stuck :s (btw sorry for my english)
    I have to do a bejeweled project but first the Uml diagram of it...
    I did some classes and whatever and professor said it was completely wrong...
    Well, without thinking in the graphic part I did something like this:
    Class game with method startgame();
    Class pieces ;
    Class board where I get 2 method 1 to generate random pieces and other to get the pieces how the user wants from a .txt
    Class moves where I get method to check if the move is correct and eliminate the pieces that were correct...

    And for start is what I could do :s

    Can anyone help me with my thinking problem?

    PS: one more note the game has 2 kinda ways: with time and without time and each one has 10 lvls to go...


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 262 Times in 231 Posts

    Default Re: Uml diagram...

    I did some classes and whatever and professor said it was completely wrong...
    From here it is hard to see the 'whatever' and hard to tell what was wrong. What did the professor say was wrong? What did you have? The more specific you are in explaining the problem the better someone can offer advice.

    So explain what you need to do, show what you have done so far, and ask a question about where you are stuck.

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Uml diagram...

    Quote Originally Posted by jps View Post
    From here it is hard to see the 'whatever' and hard to tell what was wrong. What did the professor say was wrong? What did you have? The more specific you are in explaining the problem the better someone can offer advice.

    So explain what you need to do, show what you have done so far, and ask a question about where you are stuck.
    Class game with method startgame();
    Class pieces ;
    Class board where I get 2 method 1 to generate random pieces and other to get the pieces how the user wants from a .txt
    Class moves where I get method to check if the move is correct and eliminate the pieces that were correct...

    These are the classes I made so far...
    He said I didn't need all these classes and that pieces was inheritance of something :s

  4. #4
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 262 Times in 231 Posts

    Default Re: Uml diagram...

    He said I didn't need all these classes
    I am not satisfied with your class Moves.
    What object is a Moves object? There are none. There are objects which will perform the action of moving though. The actions you take on objects should be methods of the object's class. Perhaps an interface to be implemented by object(s).
    ...and that pieces was inheritance of something :s
    With what little you have provided, I could only guess what that is about...

    If you have any more questions post the instructions you were given so everyone can understand what you are trying to do.

Similar Threads

  1. State UML Diagram
    By calebite207 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 18th, 2012, 11:30 AM
  2. UML Diagram
    By calebite207 in forum Member Introductions
    Replies: 0
    Last Post: September 21st, 2012, 05:42 PM
  3. UML diagram
    By EonsNearby in forum Java Theory & Questions
    Replies: 1
    Last Post: August 26th, 2012, 08:00 PM
  4. UML Class Diagram
    By LDM91 in forum Java Theory & Questions
    Replies: 4
    Last Post: December 27th, 2010, 11:04 AM
  5. UML Diagram Help
    By chizzle in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 15th, 2010, 04:12 AM