Overview
Structured Game Data
Structured data repeats the same kinds of fields from record to record. UML class diagrams can describe that reusable structure, while object diagrams can show particular records and their current values.
You will first use a small Parcheesi high-score table as a concrete bridge between rows of structured data, classes, and objects. Then you will apply the same idea to the larger Parcheesi game model by creating a class diagram containing Game, Player, Piece, and Turn.
User Story
As a Parcheesi player, I want game information organized into consistent types and relationships so that the same structure can represent many games, players, pieces, and turns.
Acceptance Criteria
- Recognize a row of structured data as one record containing consistent fields
- Connect record fields to class attributes and data types
- Distinguish a class definition from a particular object instance
- Create a Violet class diagram containing Game, Player, Piece, and Turn
- Include the required attributes and relationships
- Use multiplicity to communicate one-to-many relationships where required
- Keep the model small and focused on the supplied Parcheesi structure
- Submit the Violet diagram through the Feedback System and submit the Feedback System result URL to Canvas
Task List
- Read a Structured High-Score Table
- Connect a Record to a Class
- Connect Rows to Object Instances
- Transfer the Pattern to the Game Model
- Plan the Four Classes
- Create the Parcheesi Class Diagram in Violet
- Compare Structured Data and UML
- Save, Submit, and Revise the Diagram
A spreadsheet row, an object instance, and a class definition are not the same thing. The useful connection is that repeated records often follow the same reusable structure.
-
1. Read a Structured High-Score Table
Begin with a familiar structured-data form: a table in which every row uses the same columns.
Step 1 — Read the five records
PlayerName Wins Score Mia 12 840 Jamal 10 760 Elena 9 710 Noah 8 675 Priya 7 630 Step 2 — Identify records and fields
- Each row represents one record
- Each column represents a field that every record follows
- The values differ from row to row, but the field structure stays consistent
Go to topWhat Repeats?The values do not repeat, but the shape of the information does: every record has PlayerName, Wins, and Score.
-
2. Connect a Record to a Class
A class can describe the reusable structure shared by many records.
Step 1 — Read the HighScore class
The HighScore class describes the reusable field structure shared by the high-score records. Step 2 — Match each column to an attribute
Table field Class attribute PlayerName PlayerName : string Wins Wins : int Score Score : int Go to topClass = Reusable StructureThe class does not say Mia or 840 because those are particular values. It describes the kind and type of information a HighScore record can contain.
-
3. Connect Rows to Object Instances
An object diagram can show a particular record using actual values from the table.
Step 1 — Read one record as an object
One table row can be represented as one particular HighScore object. Step 2 — Add collection context
A parent object can represent the collection that contains the records.
A collection object can provide context for several record objects. Step 3 — Compare the three views
- Table: many records in rows
- Class diagram: reusable record structure
- Object diagram: particular records and current values
Go to topDo Not Confuse the Class With the RecordsThe class is not another row in the table. The class describes the structure that many record objects can follow.
-
4. Transfer the Pattern to the Game Model
The high-score example used one class to describe repeated records. The same abstraction idea can describe larger parts of the Parcheesi game.
Step 1 — Read the first two classes
Start of the larger Parcheesi model: a Game can be associated with many Player instances. Step 2 — Read the two classes you will add
Two additional reusable types are needed: Piece and Turn. Step 3 — Identify the shift in scale
The high-score example described one repeated record type. The game model uses several related types because a complete game contains different kinds of information.
Go to top -
5. Plan the Four Classes
Use the following small specification. Do not add extra classes or attributes.
Step 1 — Use these class definitions
Class Required attributes Game GameId : int Player PlayerId : int
Name : stringPiece Number : int Turn TurnNumber : int Step 2 — Use these relationships
- Game has Player — one Game can have many Players
- Player controls Piece — one Player controls four Pieces
- Game records Turn — one Game can record many Turns
- Player takes Turn — one Player can take many Turns
Go to topUse Multiplicity to Avoid Repeating BoxesYou do not draw four Piece classes or many Turn classes. One reusable class represents the type; multiplicity describes how many instances may participate in the relationship.
-
6. Create the Parcheesi Class Diagram in Violet
This is the main diagram you will submit.
Step 1 — Create the four classes
- Create Game with GameId : int
- Create Player with PlayerId : int and Name : string
- Create Piece with Number : int
- Create Turn with TurnNumber : int
Step 2 — Use this partial model as a scaffold
The scaffold includes the classes and two relationships. You must complete the Turn relationships. Step 3 — Add the remaining relationships
- Add Game records Turn
- Show multiplicity 1 at Game and * at Turn
- Add Player takes Turn
- Show multiplicity 1 at Player and * at Turn
Check Your Work
- Exactly four classes are present: Game, Player, Piece, Turn
- Every required attribute and data type is present
- Game → Player is labeled has with 1-to-many multiplicity
- Player → Piece is labeled controls with 1-to-4 multiplicity
- Game → Turn is labeled records with 1-to-many multiplicity
- Player → Turn is labeled takes with 1-to-many multiplicity
- No object values, high-score records, or extra classes appear in the submitted class diagram
-
7. Compare Structured Data and UML
Step 1 — Compare what each representation emphasizes
Representation Main emphasis Spreadsheet/table Rows of structured records and their field values Object diagram Particular instances, values, and object relationships UML class diagram Reusable types, attributes, data types, relationships, and multiplicity ERD Structured-data entities, attributes, identifiers, and relationships Step 2 — State what your Parcheesi class diagram communicates
Your finished diagram should communicate a reusable structure that could describe many different games. It should not depend on one player's current name, one current score, or one current turn value.
Go to topCheckpoint SummaryYou connected repeated structured records to reusable class definitions, distinguished classes from object instances, and created a Parcheesi class model containing Game, Player, Piece, and Turn.
-
8. Save, Submit, and Revise the Diagram
Use the same concise submission process you practiced in the earlier Parcheesi assignments.
© 2026 Northcentral Technical College
Go to top