Need Help Assignment Standard Ml Sml Language Task Write Program Accepts List Five Numbers Q37117931

I need help with this assignment in Standard ML(SML) Language:

Your task is to write a program that accepts a list of fivenumbers between one and six (representing five dice) and appliesYahtzee scoring rules to determine the best outcome. (Assume thisis the final combination of values; there is no re-rolling orreplacing.)

We are only concerning ourselves with the bottom half of theYahtzee scoring sheet, with scoring is as follows:

  • Yahtzee (5 of a kind) – 50 points
  • Large Straight (either 1-2-3-4-5 or 2-3-4-5-6) – 40 points
  • Small Straight (4 sequential numbers) – 30 points
  • Full House (2 of one number and 3 of another number) –
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.