Menu

[solved]-Goal Need Identify Objects Needed Uno Card Game Actions Objects Perform Rather Objects Sup Q39091109

The goal for me is that I need to identify the objects neededfor the UNO card game and the actions that those objects perform,rather than how the objects are suppose to actually be represented.I need to write a document that includes an ADT (abstract datatype) for each object needed in my program. This is a partial ADTfor the UnoCard class.

//get the color of the card

+getColor(): String

//set the color of the card

+setColor(color : String):void

//get the value of the card

+getValue(): int

//set the value of the card

+getValue(val : int): void

//return true if card has same value or

//same color as the card

//return false otherwise

+isMatch(card: UnoCard): boolean

The standard UNO card must be able to report both its color andvalue, and, when given another card, tell whether or not it is a”match.” Sounds not to simple for me since I never played the realcard game. I am using java/NetBeans. Thank You.

Expert Answer


Answer to The goal for me is that I need to identify the objects needed for the UNO card game and the actions that those objects p… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *