Overview
Object diagrams represent a particular point in time meaning that they are always changing
depending on the state the application is in. This assignment uses Parcheesi to exemplify the
changing state of dice and player pieces.
-
Copy and paste your Parcheesi 0.3 assignment.
Go to top -
Add a Location field to keep track of where on the board the pieces are.

Add Location Fields
Go to top -
Add two die to the GameBoard.

Add Die
Go to top -
Roll the dice.
Object diagrams represent a particular point in time. As we have it currently, the dice are
unrolled and all pieces are in their start locations. So let's say we roll the dice once for Player1 and
get a 5 and a 3. One of their pieces can move from start and then move 3 spaces.The object diagram below represents the state of the application after 1 roll.

Object Diagram after 1 Roll
The object diagram below represents the state of the application after 2 rolls.

Second Roll
Go to top -
Submit to the Feedback System.
Go to top