01.09.2013 Views

Gruppövning 2 Analys och design av spelet Greed

Gruppövning 2 Analys och design av spelet Greed

Gruppövning 2 Analys och design av spelet Greed

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Gruppövning</strong> 2<br />

<strong>Analys</strong> <strong>och</strong> <strong>design</strong> <strong>av</strong> <strong>spelet</strong><br />

<strong>Greed</strong><br />

I den här uppgiften ska ni gruppvis genomföra objektorienterad<br />

analys med hjälp <strong>av</strong> CRC-metoden. Rekommenderad gruppstorlek:<br />

fyra personer.<br />

Uppgiften går ut på att analysera ett antal scener som beskrivs längre<br />

ned. Ni ska ta fram preliminära klasskandidater, CRC-kort,<br />

rollspelsdiagram <strong>och</strong> klassdiagram i UML.<br />

Möjlighet kommer att finnas att få feedback på er lösning <strong>av</strong><br />

handledarna efter gruppövningen om ni gör en färdig <strong>design</strong> (ni<br />

kommer nog ej hinna bli klara med detta under de 2 timmar som<br />

gruppövningen pågår). Observera att detta är sista övningstillfället<br />

innan ni ska lämna in <strong>design</strong>en för gruppuppgiften som ni ska<br />

programmera efter, så det kan vara rätt viktigt att få feedback kring<br />

eventuella brister i <strong>design</strong>en eller processen fram till denna.<br />

Beskrivning <strong>av</strong> <strong>spelet</strong> <strong>Greed</strong><br />

General<br />

<strong>Greed</strong> is a dice game played between two or more players. The<br />

objective of the game is to register points from the dice rolls. Points<br />

are accumulated separately for each player. The game is played with<br />

6 dice that are rolled from a cup. The first player reaching a certain<br />

amount of points (usually 10000) wins.<br />

How to play<br />

The game is played in turns. In each turn a player can register points


which are accumulated through all turns. To register points a player<br />

must reach a certain limit (usually 300 points) on the first roll of<br />

her/his turn, otherwise s/he is considered bust.<br />

If a player goes bust s/he gets no points for that turn and must wait<br />

for her/his next turn to roll again.<br />

If the first roll of a turn reaches or exceeds the limit, then the player<br />

has two options:<br />

1. to stop and register the points, or<br />

2. to continue and try to get more points.<br />

To continue, the player rolls all the dice that h<strong>av</strong>e not yet scored in<br />

this turn. If no dice are remaining, the player continues by rolling all<br />

the dice again. The player can choose which dice will score in each<br />

turn.<br />

A player may continue as long as at least one die scores in each roll.<br />

If a roll produces no points, the player goes bust and all points made<br />

in this turn are lost. The points scored in earlier turns are not affected.<br />

If a player stops rolling without being bust s/he can register all points<br />

scored in this turn. They are added to the scores from earlier turns.<br />

How to score<br />

Each dice roll is scored as follows (the rules compare very roughly to<br />

the dice game "Yatzee"):<br />

• Three of a kind score 100*face value of one of the dice. If the face<br />

value is 1, then it is scored as 1000.<br />

• Single 1's and 5's score 100 and 50, respectively.<br />

• A street, i.e. 1, 2, 3, 4, 5, and 6, scores 1000.<br />

The game exists in several variants with respect to the number of<br />

dice, the limit for the first roll, the high score, and even the scoring<br />

rules.


Scener<br />

OBS: Scenerna kan behöva förtydligas innan ni startar rollspelandet.<br />

Scen 1<br />

En spelare slår sitt första tärningsslag i <strong>spelet</strong> <strong>och</strong> får tre stycken<br />

fyror, två ettor <strong>och</strong> en sexa. Efter detta väljer spelaren att registrera<br />

sina poäng.<br />

Scen 2<br />

En spelare, som har 8600 poäng sedan tidigare, slår 3 ettor samt en<br />

tvåa, en trea <strong>och</strong> en fyra. Han väljer att slå om allt utom ettorna <strong>och</strong><br />

får tre stycken fyror. Han väljer därefter att registrera sina poäng.<br />

Scen 3<br />

Välj själv en scen <strong>och</strong> dokumentera den. (Scenen ska inkludera att<br />

minst 2 spelare får göra något.)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!