Guess Who Game Phase 1
For this project, I want you to create a class diagram using the Umbrello UML software tool. This case tool was originally created for Linux but now there are also versions for Windows and Mac. You can download Umbrello from their web site [url removed, login to view] Be sure to download the appropriate version for your computer and operating system. Umbrello can be used to create all kinds of UML diagrams including class, use case, and sequence. Once you get Umbrello installed, open it up and explore some of the features. You might also want to review the aspects of class diagrams in your textbook. Then move on the next part of this assignment.
Guess Who Class Diagram
Create a class diagram using Umbrello based on the following information. BE SURE TO SAVE YOUR DIAGRAM FILE EARLY AND OFTEN. We will be modelling and creating a game based on the popular children’s board game of Guess Who. If you are not familiar with this game, here are a couple of YouTube explanation videos. Of course, it would be more fun just to go to a store and buy the game so you can play it yourself.
[url removed, login to view]
[url removed, login to view]
For this assignment, we are NOT going to model and create the entire game. I want you to model two classes related to the game. These are character and board. First, design a class to model a character from the game. (See included game card images). In fact, character would be a good name for this class. Remember, you are designing a generic blueprint for any of the characters…not any one specific player. Think about the attributes that would be used in questions during game play. For example, some attributes would be a string type such as hairColor, eyeColor, etc. Other attributes might be Booleans that are true or false, such as glasses, hat, and beard. I am thinking you will need to have at least ten of these identification type attributes. You will also need to have appropriate methods to go along with those attributes that can be used in game play later. These will be primarily set and get methods. I am including pictures of the character cards for you to use for help in identifying these attributes.
The second class I want you to model with you class diagram is the board or collection that each player has. A board is composed of a collection of all the characters, plus the mystery character for that player
(The mystery character is one of the characters chosen at random). Your board class should also contain methods to handle population of the character components as well as some interactions with the board. I don’t expect you to design the entire game utilizing these two classes. In a later project we will probably add some other classes such as a class to handle the game play side of things. Be sure to show composition in your class diagram since a board will be composed partly of character objects.
Coding of the Guess Who classes
After you have modelled your classes in Umbrello, implement the design in the Java programming language. I want you to use the NetBeans IDE to code this assignment since that is what I plan on using to grade it. Umbrello has a code export feature that you can use to create some skeleton code for getting started. You can choose to use it or not. Write a program that shows the functionality of your classes. Again, I don’t expect to see a full working Guess Who game or any graphics of cards at this point. I just want to see the classes implemented and working.
What and How to Turn In
I want you to zip up the entire NetBeans project file you created. That way, I only have to download one file with all of your code and hopefully, I’ll just have to unzip it and load up the project file in NetBeans. You also need to turn in your class diagram. The native file format for Umbrello is XMI. Turn this in but also save your class diagram as an image file such as jpg. There is a way to export an image file in Umbrello but I have had problems with it in the past. You might have to take a screenshot of your diagram using the print screen tool on your computer. Then you can paste it in an image program like Photoshop or GIMP. Pasting the image in a Word file would also be a possible option.
Guess Who Characters
I have complete file of this micro project. There are some characters for this. I will send you if we finilize it.