Hi,
I was wondering if someone could help me! I've new to java! I'm using the IDE Netbeans. I have to create a dice game which will do the following:
On pressing the new game button, both dice are removed from view, any message is removed from view and the roll the dice button is enabled
On pressing the roll the dice button once after the new game started the computer’s dice will be rolled and the result displayed
On pressing the roll the dice button a second time, the player’s dice will be rolled and the result will be displayed; the roll the dice button will then be disabled. If the player’s dice is higher than the computer’s dice, the window will display “Winner!” to the user and the score will increase by 2 points. If the player loses, the window will display “You lose” and the score will decrease by 1 point.
I would really appreciate any help and how to do this. I am particulary confused on how to get the dices to work! Thanks in advance!
I was wondering if someone could help me! I've new to java! I'm using the IDE Netbeans. I have to create a dice game which will do the following:
On pressing the new game button, both dice are removed from view, any message is removed from view and the roll the dice button is enabled
On pressing the roll the dice button once after the new game started the computer’s dice will be rolled and the result displayed
On pressing the roll the dice button a second time, the player’s dice will be rolled and the result will be displayed; the roll the dice button will then be disabled. If the player’s dice is higher than the computer’s dice, the window will display “Winner!” to the user and the score will increase by 2 points. If the player loses, the window will display “You lose” and the score will decrease by 1 point.
I would really appreciate any help and how to do this. I am particulary confused on how to get the dices to work! Thanks in advance!