Assignment 11

 

CS 3500 Assignment #11

Assigned:  Monday, June 17, 2013

Due: Wednesday, June 19, 2013


The purposes of this assignment are:


  1. *to give you more design responsibility

  2. *to implement game using OO design


Working in assigned teams of three students, you will be designing and implementing the game Bunco. Bunco is a family-friendly dice game that requires no skill and is all luck. There are many different variations of the game, but for the assignment we will use the following rules:


  1. Each game requires three dice of the same type. Typically six-sided dice are used, but other types of dice may be used. You can assume that dice may have between (inclusive) six and twenty-six sides.

  2. Each game will consist of multiple rounds—one round for each side of the dice being used. For example, if the typical six-sided dice are being used, there would be six rounds.

  3. Each round will have a target value—e.g., first round has target value of one, second round has target value of two. During a round, all players take turns rolling the dice until one of the players has 21 points.

  4. A player’s turn consists of rolling the three dice together. For each dice that is the target value, the player gets one point added to his/her round score. An exception to getting one point for each dice that is the target value is if all three dice are the target value; this is a Big Bunco and is worth five points. A player’s turn continues until he/she rolls the dice and none of the dice are the target value. In addition to getting points when rolling the target value, if all three dice have the same value (that is not the target value) then this is a Little Bunco, which is worth three points but ends a player’s turn.

  5. Each game can have 2-10 players.

  6. Each player will have a name, total score, current round score, number of rounds won, number of big buncos, and number of little buncos.


The client has the following expectations:

  1. I should be able to enter the number of players along with their names.

  2. I should be able to enter the number of sides on the dice.

  3. I should have the option to see or not see each roll of the dice.

  4. I should have the option to see or not see each player’s scores/counts at the end of each round.

  5. At the end of the game, I should see each player’s scores/counts.

  6. At the end of the game, I should see the winner of each category—total score, number of rounds won, number of big buncos, and number of little buncos.


Collaboration between students who are not on the same team is forbidden for this assignment.  Your team is responsible for keeping its code hidden from all other students.


Turn in your work on this assignment before 1:29 pm on the due date by following instructions on the course's main assignments web page, http://www.ccs.neu.edu/course/cs3500su13-1/Assignments.html.


Your files of Java code should begin with a block comment that lists

  1. 1.The names of all students on your team

  2. 2.The email addresses of all students on your team

  3. 3.Team number that you were given

  4. 4.Any remarks that you wish to make to the instructor


Part of your grade will depend on the quality, correctness, and efficiency of your code, part will depend on your adherence to object-oriented programming style and idioms as taught in this course, part will depend on the readability of your code (comments and indentation), and part will depend on how well you follow the procedure above for submitting your work.


Late or incorrectly submitted assignments will not be accepted.