0% found this document useful (0 votes)
296 views10 pages

Ccprog3 MP PDF

The document describes the UML class diagram for a Sushi Go game. It outlines the main classes like Player, Card, Pile, Menu, and Game. The classes describe attributes like name, piles, points and methods like receiveCards(), discardCard(), getName(), setScore() etc. The Game class tracks overall game state with attributes like deck, rounds, turn and methods to generate the deck, shuffle cards, distribute cards and tally scores.

Uploaded by

Anonymous
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
296 views10 pages

Ccprog3 MP PDF

The document describes the UML class diagram for a Sushi Go game. It outlines the main classes like Player, Card, Pile, Menu, and Game. The classes describe attributes like name, piles, points and methods like receiveCards(), discardCard(), getName(), setScore() etc. The Game class tracks overall game state with attributes like deck, rounds, turn and methods to generate the deck, shuffle cards, distribute cards and tally scores.

Uploaded by

Anonymous
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

SUSHI GO UML

Jess Ngan / Daniel Baguio | December 4, 2019

Pile

- keepPile: ArrayList<Card>
- dropPile: ArrayList<Card
- cardsOnHand: ArrayList<Card>
- discardedCard: Card
- roleCount: int
- Count: int

+ Pile()

+ getRoleCount(): int
+ getKeepPile(): ArrayList<Card>
+ getCardsOnHand(): ArrayList<Card>
+ getDiscardedCard(): Card
+ getDropPile(): ArrayList<Card>
+ getCount(c: Card): int

+ setDiscardedCard(c: Card): void


+ setDropPile(c: Card): void
+ setKeepPile(c: Card): void
+ setCount(c: Card): void Game
Player
+ receiveCards(cardsOnHand:
- player: ArrayList<Player>
- name: String ArrayList<Card>): void
- deck: ArrayList<Card>
Menu
- piles: ArrayList<Pile> - rounds: int
- points: int - turn: int
- score: int - menudeck: ArrayList<Card> - rank: int

+ Player(name: String) + Menu() + Game()

+ getName(): String Card + CreateMenu(): void + getDeck(): ArrayList<Card>


+ getScore(): int + getTurnCount(): int
- category: String + getRoundCount(): int
+ setScore(points: int): void + getRank(): int
receive, discard, drop, keep - name: String
- color: Color
+ discardCard(p: Pile): void + setTurnCount(): void
- points: int
+ setRoundCount(): void
- setDeck(ArrayList<Card>
+ Card(category: String, name: String, ): void
color: String)
+ nextRound(): void
+ getCategory(): String + generateDeck(): void
+ getName(): String + collect(): void
+ getColor(): Color + shuffle(): void
+ getPoints(): int + distribute(): void
+ passCards(): void
+ setPoints(points: int): void + settleScores(): void
+ tallyOverallScores(): void

+ addTurnCount(): void
+ addRoundCount(): void

+ cardUp(): void
+ cardDown(): void

Nigiri Roll Appetizer Special Dessert + isRoundFinished(): boolean


+ isGameFinished(): boolean
- points : int - score: int + getWinner(): Player

+ Nigiri() + Roll () + Appetizer() + Special() + Dessert()

+ getPoints() : int + getScore(): int

Wasabi Tea GTIC Pudding

+ score: int
Squid Salmon Egg

+ Wasabi() + Tea() + GTIC() + Pudding()

+ getScore(rank : int): int


+ Squid() + Salmon() + Egg()

Tempura Sashimi Dumplings MisoSoup Tofu

+ Tempura() + Sashimi() + Dumplings() + MisoSoup() + Tofu()


SUSHI GO!

s u s hi
go!
Ent e r c r e di t s
t o
pl ay
SUSHI GO!

s u s hi
go!
2 players 3 players
SUSHI GO!

s u s hi
go!
Enter Player X Name
TEXTFIELD

OK CANCEL
SUSHI GO! X

Menu 1

M A A A S S D
N A P P P
I K P P P P P E
G I E E E E E S
I T T T C C S
R R I I I I I E
O Z Z Z A A R
I L E E E
L R R R L L T

Menu 2

M A A A S S D
N A P P P
I K P P P P P E
G I E E E E E S
I T T T C C S
R R I I I I I E
O Z Z Z A A R
I L E E E
L R R R L L T

Create Own Menu


SUSHI GO! X

A A A A A
P P P P P
P P P P P
Choose E E E E E
Appetizers (3) T T T T T
I I I I I
Z Z Z Z Z
E E E E E
R R R R R

D D
E E
Choose S S
Dessert (1) S S
E E
R R
T T

ENTER
SUSHI GO! X
HAND
PILE
ON
PILE CARD
CARD
KEEP DISCARD

Card
Discard

Player 2:58

Nigiri Rolls Special #1 Special #2

s u s hi
Appetizer
#1
Appetizer
#2
Appetizer
#3 Dessert
go!
Player 1: 38

Discard
Card

DISCARD KEEP
CARD
CARD PILE
ON
PILE
HAND
SUSHI GO! X

Pile Hand Keep Pile


Discard Cards on

Discard
Card

Pile
Discard

Player 3:18

s u s hi g o !
Nigiri Rolls Special #1 Special #2

Discard
Card

Player 2: 58
Appetizer Appetizer Appetizer
#1 #2 #3 Dessert
Cards on
Hand

Player 1: 38
Keep Pile

Discard
Card

Discard Cards on
Pile Hand Keep Pile
SUSHI GO! X

s u s hi
go!
WINNER: INSERT WINNER INSERT
POINT
PLAYERS: INSERT LOSER 1 INSERT
POINT
INSERT LOSER 2 INSERT
POINT
PLAY AGAIN
SUSHI GO! X

INSERT
PICTURE
s u s hi
OF
MEMBER 1 go!
Name

INSERT
PICTURE
Name
OF
MEMBER 2

You might also like