sorry!
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 PresentationTRANSCRIPT
![Page 1: Sorry!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/1.jpg)
Sorry!
By: Mordor Programming
![Page 2: Sorry!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/2.jpg)
![Page 3: Sorry!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/3.jpg)
Use case
![Page 4: Sorry!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/4.jpg)
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!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/5.jpg)
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!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/6.jpg)
Class Relationship Diagram
![Page 7: Sorry!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/7.jpg)
Activity Diagram 1
![Page 8: Sorry!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/8.jpg)
Activity Diagram 2
![Page 9: Sorry!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/9.jpg)
Sequence Diagram 1 (GameSetup)
![Page 10: Sorry!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/10.jpg)
Sequence Diagram 2 (Move)
![Page 11: Sorry!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/11.jpg)
Sequence Diagram 3 (Bump)
![Page 12: Sorry!](https://reader035.vdocuments.net/reader035/viewer/2022062410/568161ec550346895dd21f9c/html5/thumbnails/12.jpg)
Sequence Diagram 4 (Sliding)