Creating a die (x2) with classes

Asked by At

Create a dice game. Start by creating a Dice Game class. The Dice Game class has two Die objects. The game also has a method called play. In the play method, the player can roll the die objects (dice) and then the method should display the faces of the die objects along with the total face value from the play. Write a Die class to create the die objects. The Die class should have two attributes – face and face Value. face should hold the face image of the die face using the keyboard characters. For example, ' ------\n| o o |\n| o o |\n| o o |\n ------' represents the face for six. The face Value attribute holds the integer value of the face. I have tried coding it, but I can't seem to figure it out.

0 Answers