View the step-by-step solution to:

Question

# In python I have my code written . My code is running but it has some problem

regarding to rules. (I have did all the other things so you do not have to worry about other functions)

1) fix my scoring according to the point table.

point table for game:

5 = 50 points

1 = 100 points

Triplet of 1 = 300 points "Example(1,1,1)"

Triplet of 2 = 200 points

Triplet of 3 = 300 points

Triplet of 4 = 400 points

Triplet of 5 = 500 points

Triplet of 6 = 600 points

Four of a Kind [Example(4,4,4,4)] = 1,000 points

Five of a Kind[Example(4,4,4,4,4)] = 2,000 points

Six of a Kind [Example(4,4,4,4,4,4)] = 3,000 points

(1,2,3,4,5,6 ) = 1,500 points

Three Pairs [Example(4,4,2,2,1,1)]= 1,500 points

Four of a Kind + a Pair [Example(4,4,4,4,1,1)]= 1,500 points

Two sets of Three of a Kind [Example(4,4,4,6,6,6)] = 2,500 points

"NOTE(single 2,3,4,6 does not have any point.)"

2) Roll the remaining dice (Which will be the one who does not have points), removing any dice worth points and adding them to your running total.

- If you are ever able to set aside all six dice, you may re-roll all of your dice and keep building your running total.

- If ever you are unable to set aside any dice (no dice are worth points), you have Farkled. You lose your running point total and your turn is over.

EXAMPLE

--------------------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------------------

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents