Create a subdirectory of your home directory named Skunk not
Solution
You can include the function below in the code written in part 1 to achieve the result of part 2.
#define round 5
 int Roll_Dice(int rounds)
 {
 int cur_score = 10; // We have assumed that the current score is 10.
 int sum = 0, average = 0;
 int arr[round],arr2[round]; // We will use array for storing the score after each roll.
 int r ,i ,j;
 l: for(i=0,j=0;i<5,j<5;i++,j++) // Using both the variables in the loop.
 {
 r = rand() % 6 + 1; // We are generating the random numbers because dice has 1-6 values.
 arr[i] = r;
    r = rand() % 6 + 1;
    arr2[j] = r;
    if(arr[i]!=1 || arr2[j]!=1)
    {
    if(arr[i] == arr[j]) // Check if there is double
    sum = 0; // Points are wiped out
 }
    else {
 average = sum/round; // Added otherwise
 }
 if(sum >= cur_score) // Check if sum greater than current score
 printf(\"%d\",average); // Print out the average
 else
 goto l; // Else execute the loop again
 
 return 0;
 }
 
 3. The game of Skunk is totally based on the probabilistic events, hence there is no such strategy
 if the number of the rounds are defined.
 If in case the number are not defined then one can go for the value which has more sum as outcome of
 both the dice.
 
 
 
 

