bscs23181 Uml

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Square Game

-players: Player[]
-board: Board
-dice: Dice

+isSafe(): boolean

+start(): void
+end(): void
has uses

uses

Player
Board
-name: string Dice
-color: string
-pawns: Pawn[] -squares: Square[]

+movePawn(pawn: Pawn, steps: number): void +getSquare(position: number): Square


+roll(): number

has

Pawn

Lucidchart basics
-position: number

+getPosition(): number
+setPosition(newPosition: number): void

You might also like