# Uml diagram...

• November 30th, 2012, 10:50 PM
Flames
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...
• December 1st, 2012, 05:40 AM
jps
Re: Uml diagram...
Quote:

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.
• December 1st, 2012, 09:24 AM
Flames
Re: Uml diagram...
Quote:

Originally Posted by jps
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
• December 1st, 2012, 07:39 PM
jps
Re: Uml diagram...
Quote:

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).
Quote:

...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.