Highlights
Six of one
The dice game called Six of one involves six dice, and scores of 1 are particularly important in the game. It’s a good combination of luck and judgement. There are two players, each of whom is trying to reach an agreed total with up to six dice.
The player's alternate turns and each player has a score, which (possibly) builds up turn by turn. When it’s a player’s turn, the player chooses how many dice to roll, then rolls those dice all at the same time. This is what then happens
• if exactly one 1 is rolled, the player scores nothing for the turn;
• if exactly two 1s are rolled (this is called snake’s eyes), the player scores nothing for the turn and the player’s score is reset to zero;
• if exactly three 1s are rolled (this is called a dead drop), the player loses the game immediately – the other player wins;
• if four or more 1s are rolled (this is called a boojum), the player wins the game immediately;
• if there are no 1s, and three or more of any other number are rolled (that is, there are three or more of the same number, which isn’t a 1 – this is called a snaffle), the player’s score for the turn is twice the sum of the numbers on the dice that were rolled; this is added to the player’s previous score;
• in any other case, the player’s score for the turn is the sum of the numbers on the dice that were rolled; this is added to the player’s previous score.
Your assessment task
Your task is to write a program in C with which two users can play Six of one against each other, or a single user can play against the program. You can and should start immediately. If you put this task off, you will certainly run out of time.
1. Read this document very carefully, all the way through. Begin your journal.
If there are aspects of the game that you don’t understand, read the description again, sentence by sentence. Follow the sample games shown above, and be sure you understand every play and every outcome. Then play the game several times. Play it with the pen, paper, and dice if you have six dice. If not, write a simple program that rolls up to six dice (perhaps just displaying the digits, not the graphical faces). Build in a feature that lets you choose how many of the six dice to roll, and play the game with the pen, paper, and these program dice. You will not be able to program the game if you don’t understand the game.
2. Re-read this document very carefully. Keep your journal up to date.
Design a suitable form, thinking carefully about what controls you will require and where they will be on the form. Try to arrange it so that the user’s gaze doesn’t have to leap about all over the form, and so that the most common mouse movements are reasonably small. Then create the form. Do your best to get it looking reasonable, and be sure that all of the spelling and grammar are correct. There is no excuse for poor English on a program’s interface. Note: while it is possible to use multiple forms for this assignment, there is no requirement to do so. In particular, you should use only one form for the game itself – users should not have to open and close forms multiple times while playing the game.
3. Re-read this document very carefully. Keep your journal up to date.
Write some code to display random numbers between 1 and 6 on six dice. Will your program simply displays the number or the face for that number, or will it add a little animation, displaying different faces in turn to give the impression of the dice rolling? If the dice roll, will they always stop after the same number of faces, or will that have a random element, too? Perhaps you should start simple and add features later, once you have the rest of the program working.
For this, as for other pieces of code you develop, consider having a “Test” button on the form that simply tests this piece, so that when you run the program it goes directly to the bit you’re working on. But remember to remove that button and its event handler before handing in the assignment.
4. Re-read this document very carefully. Keep your journal up to date.
Write some code to add the scores of the six dice to a player’s score.
5. Re-read this document very carefully. Keep your journal up to date.
Write code that permits the player to change the number of dice being rolled. Will the dice roll as soon as the player has chosen how many to roll? Or will there be a separate Roll button, so that the player can change the number again before finally deciding? Be sure that the score only counts the dice that were rolled – not any values still hanging around for the dice that weren’t rolled.
This Inft2012: IT Assignment has been solved by our IT Experts at My Uni Papers. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2025 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.