C coding assignment
CSlam!
CSlam! is our simulation of part of a real board game named Yamslam. We will simulate rolling dice using a random number
generator and our C program will determine which dice combination is created by the dice. Our player will get the option to
reroll the dice to get a different combination. For now, our program will only roll all of the dice and will determine the
combination and display it and allow the player to reroll up to 2 more times. Your program will be looking the following seven
combinations.
A video is attached to this assignment in Canvas that shows the game being played. Your goal is to follow the directions given
in this assignment and create the same game as shown in the video.
The rubric contains some very specific items you must include in your code. These specifics are there for the GTA testing.
Create your Code1_xxxxxxxxxx.c file where xxxxxxxxxx is your 10 digit student id number.
Rubric
If program compiles with ANY warnings or errors, then a grade of 0 will automatically be assigned.
Test Points Pass/fail?
1 Program is properly formatted – both alignment and formatting
10
2 Student’s name and id are at the top of every file and file containing C code is named Code1_xxxxxxxxxx.c where xxxxxxxxxx is the student’s 10 digit student id.
5
3 Number of dice and number of faces per dice are defined once (not hardcoded throughout the program).
5
4 A function named RollDice takes a parameter that is the dice array and randomly fills the array with numbers between 1 and 6.
5 If this function does not exist/does not have this name, then the program cannot be tested.
5 No global variables – dice array must be passed. 5
6 An int variable named numberOfReRolls must
exist and be used to determine how many times the user is allowed to reroll.
5 If this variable does not exist/is not used as described, then the program cannot be tested.
7 Test run of different combinations is successful. 65 The GTAs will be altering your code slightly to run through different combinations to ensure you have coded all of the possible 7 scenarios correctly.