0.6 Parcheesi Assignment [45 minutes]

Overview
1.Read three completed game records [10 minutes]

Last week, you used a sequence diagram to show what happens when a player rolls the dice. This week, you will model the data kept after a game. Look at three example records in an object diagram, then make one Violet class diagram showing the structure that all three records share.

Your only deliverable is an editable Violet class diagram with one class named HighScore and six attributes. The object diagram below is an example to read; you do not need to submit an object diagram or write code.

Each box in the diagram is a particular HighScore object: one saved record with its own values. These records come from three different Parcheesi games. Each record stores the same six fields with values for that game.

Three HighScore objects for Parcheesi1, Parcheesi2, and Parcheesi3. Each has GameName, NumberOfTurns, Date, PlayerColor, Rank, and NumberOfPlayers.
Three completed Parcheesi game records
A Compare the values in the three records

Read the value after each equals sign. Compare the records with this table:

Completed game records
Field First record Second record Third record
GameName Parcheesi1 Parcheesi2 Parcheesi3
NumberOfTurns 18 24 24
Date 2026-08-15 2026-10-24 2026-11-16
PlayerColor Red Red Blue
Rank 1 3 2
NumberOfPlayers 4 3 4

NumberOfTurns counts turns in the saved game. Rank records the player's finishing position, and NumberOfPlayers records how many players participated. For example, the first record shows a first-place finish in a four-player game with 18 turns.

B Find the fields shared by all three objects

Check that each object has GameName, NumberOfTurns, Date, PlayerColor, Rank, and NumberOfPlayers. Notice which values are text and which are whole numbers. This is preparation for the class diagram, not a separate written response.

2.Turn the records into one class [10 minutes]

An object diagram shows particular records and their values. A class diagram shows a reusable definition for records of that kind. Create just one class: the three example objects are instances of the same HighScore class.

A Choose the six attribute types
HighScore attributes
Attribute Type What it stores
GameName string The name of the game
NumberOfTurns int The whole-number count of turns
Date string The saved date as text
PlayerColor string The player's color as text
Rank int The player's finishing position
NumberOfPlayers int The number of players in the game

Although a calendar date might use a different type in another program, use string for Date in this assignment. The exact attribute names and types in the table are the ones your class diagram must show.

3.Create the HighScore class diagram in Violet [20 minutes]
A Start a new class diagram

Open Violet UML Diagramming Tool. Choose File > New > Class diagram, or choose Class diagram from Violet's opening screen. Select the class tool and click once in the workspace to place one class box.

B Name the class HighScore

Double-click the class box to edit its properties. Set its name to HighScore. If your version opens properties from a context menu, right-click the class and choose the properties command.

C Enter the attributes

In the attributes area, enter these six lines in this order, preserving the spelling and capitalization:

HighScore attributes
GameName: string
NumberOfTurns: int
Date: string
PlayerColor: string
Rank: int
NumberOfPlayers: int

The attribute names come from the object diagram. The type after each colon describes what kind of value the attribute stores. Do not put the example values, such as 18 or Red, in the class diagram. Leave the methods area empty and do not add a Game class, other classes, or connectors.

D Compare your completed class diagram
One class named HighScore with exactly six attributes: GameName: string, NumberOfTurns: int, Date: string, PlayerColor: string, Rank: int, and NumberOfPlayers: int. The methods area is empty and no other classes or connectors appear.
Completed HighScore class diagram

Make sure there is exactly one class named HighScore and exactly the six attributes shown. The object diagram has three boxes because it shows three actual records; your class diagram has one box because all three records share one definition.

4.Save and submit the class diagram [5 minutes]
A Save the editable Violet file

Choose File > Save. Use the base filename Parcheesi 0.6 LastName, replacing LastName with your last name. Keep Violet's class-diagram file extension. In the desktop version used for these assignments, the filename ends with .class.violet.html. Submit the editable file, not a screenshot.

B Submit the diagram to the Feedback System

ZIP the .class.violet.html file itself without placing it inside another folder. Name the ZIP Parcheesi 0.6 LastName.class.violet.html.zip and submit it to the Feedback System. Include only your completed class diagram.

C Review and revise your diagram

Read the feedback. If it identifies an issue, make the correction in Violet, save the file, ZIP it again, and resubmit it.

D Submit your result to Canvas

Submit the resulting Feedback System URL to Canvas as directed by your course. No written explanation or additional diagram is required.