my dog learned polymorphism*
The moose likes OO, Patterns, UML and Refactoring and the fly likes yahtzee game Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply locked New topic
Author

yahtzee game

William Koch
Ranch Hand

Joined: Sep 26, 2012
Posts: 76
I have no idea where to start when creating a class diagram. I am just drawing it out on a piece if paper so I do not need any special software at the moment. How do you know what all your classes need to be and how do you know what methods and fields/attributes that they are going to have? One thing to keep in mind (I do not know if this will affect any answers). This game I am creating needs to implement the strategy pattern, and it also needs to use the model view controller. Thanks a bunch.
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4419
    
    5

When I diagram, I only draw out major parts of the application. I don't go down to the level of classes and methods very often, and certainly never when I'm first starting to plan out a design and architecture.

Also, with something like the Strategy pattern, I never start out with the intent to implement that particular pattern. With me, the Strategy pattern is always something I recognize after seeing certain aspects of my design evolve after I have gone through several iterations of test/code/refactor.

The MVC pattern is something you can have in mind from the start since it is general enough to actually be useful in guiding your high-level module design and architecture.


Junilu - [How to Ask Questions] [How to Answer Questions]
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4419
    
    5

Duplicate of this thread.

Please do not post the same question to multiple forums. I'm locking this topic, please continue the discussion in the other forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: yahtzee game
 
Similar Threads
J2ME Server & Image Size
how to make game in java
Java Board Game
Game development books/recommendations
Yahtzee Class Diagram