Hi there, i just joined this forum in hope improving my Programming skills.

Currently i have a college assignmnt. It is to create a dice game

"There is a little known dice game which is played with a pair of dice and has the following rules: the player keeps rolling the dice until the total on the dice is 2, 3, 7, 11 or 12. If the total is 7, then the player loses, if it's 2, 3, 11 or 12 then the player wins. If the total is any other number, then the game continues.

Example:

Would you like to play (y/n): y

The dice are:

1 6

The total is 7

Unfortunately, you lost.

Marking scheme says 40% goes for the use of methods, so i was hoping if any of you kind gents/ladies would help me out with this one?