This is previous exercise wich describes wich class to use.
Exercise: Write a model class that represents a die (that is, a cube whose sides are num-
bered 1 to 6). The class will likely have just one method, throw(), and no at-
tributes. (Hint: use Math.random to write throw.) Then, write an output-view
class that displays a die after it has been thrown. Finally, write a controller
that lets a user throw...
User Profile
Collapse
-
Build a game called \ Draw the house
Can anyone halp me to write the Java code for thid exercise?
--------------------------------------------------------------------------------------------------------------
Exercise: Use the class from the previous exercise to build a game called \draw the house."
The objective is to throw a die repeatedly, and based on the outcome, draw parts
of a house. A throw of 6 lets one draw the building, a square; a throw...
No activity results to display
Show More
Leave a comment: