0.4 Parcheesi Assignment

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.

  1. Copy and paste your Parcheesi 0.3 assignment.

    Go to top
  2. Add a Location field to keep track of where on the board the pieces are.

    Instructional image from 0.4 Parcheesi Assignment, page 1

    Add Location Fields

    Go to top
  3. Add two die to the GameBoard.

    Instructional image from 0.4 Parcheesi Assignment, page 2

    Add Die

    Go to top
  4. 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.

    Instructional image from 0.4 Parcheesi Assignment, page 3

    Object Diagram after 1 Roll

    The object diagram below represents the state of the application after 2 rolls.

    Instructional image from 0.4 Parcheesi Assignment, page 4

    Second Roll

    Go to top
  5. Submit to the Feedback System.

    Go to top