sorry!

12
Sorry! By: Mordor Programming

Upload: steffi

Post on 22-Feb-2016

35 views

Category:

Documents


0 download

DESCRIPTION

Sorry!. By: Mordor Programming. Use case. Class Definitions . Cards -deck : array[int ] -top : int +shuffle() +discard() + drawTopCard () : int Pawn -color : int -position : int - onBoard : boolean - inSZ : boolean +move(position : int ) : boolean. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Sorry!

Sorry!

By: Mordor Programming

Page 2: Sorry!
Page 3: Sorry!

Use case

Page 4: Sorry!

Class Definitions Cards

-deck : array[int]-top : int +shuffle() +discard() +drawTopCard() : int

Pawn -color : int -position : int -onBoard : boolean -inSZ : boolean +move(position : int) : boolean

Board -redPawns : array[Pawn]-bluePawns : array[Pawn]-greenPawns : array[Pawn] -yellowPawns : array[Pawn] -redSZ : arrayBoard[Square] -blueSZ : array[BoardSquare] -greenSZ : array[BoardSquare] -yellowSZ : array[BoardSquare] -cards : Cards -board : CircularLinkedList[BoardSquare] +slide() +isBump() : boolean +bump() +checkWinner() : int

Page 5: Sorry!

Class Definitions cont’dPlayer

-color : int -ai : boolean +drawCard() : int +choosePawn(position : int) : boolean

[BoardSquare] -color : int -slidePosition : int -isSZEntrance : boolean

[GameMode] +mode : int

Page 6: Sorry!

Class Relationship Diagram

Page 7: Sorry!

Activity Diagram 1

Page 8: Sorry!

Activity Diagram 2

Page 9: Sorry!

Sequence Diagram 1 (GameSetup)

Page 10: Sorry!

Sequence Diagram 2 (Move)

Page 11: Sorry!

Sequence Diagram 3 (Bump)

Page 12: Sorry!

Sequence Diagram 4 (Sliding)