Word Game Design: UML Class Diagram and Requirement Realization

Verified

Added on  2022/08/17

|3
|557
|31
Project
AI Summary
This document provides a design for a single-player word game, detailed through a UML class diagram. The design includes classes such as Player, Board, Statistics, GameScoreStatistics, WordStatistics, and Game, each with defined attributes and operations. Relationships between classes are also specified, such as associations, and inheritance. The design addresses requirements like player choices (play game, view statistics, adjust settings), game settings (time limit, board size), and data tracking (game scores, word statistics). The document explains how each requirement is realized in the design, ensuring a clear understanding of the rationale behind the design choices and their fulfillment of the specified requirements. The project also outlines assumptions and design decisions made during the development process.
Document Page
The Uml class diagram.
Figure 1 below shows the UML class diagram for the game application.
Classes.
The classes for the game application include; player, Board, statistics, gamescorestatistics, word
statistics and game.
Attributes.
The attributes for the class player include; name. playerId, email and unique word.
The attributes for the class game includes; gameid, game Name, menu, timercount,Number of
minutes and default.
The attributes for the class board includes; squreboardsize, type, weight of letter, letter and cost.
The attributes for the class statistics includes; name, negative, positive, finalscore and points
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
The attributes for the class Game score statistics includes; Finalgamescore, number of times,
Number of word and final score.
The attributes for the class word statistic includes; word and number of times.
Operations.
The operation for the class player includes playwordgame,viewstatistic and adjustgame setting.
The operation for the class game includes start,end ,generate letter,playwordgame,viewstatistic
and adjustgame setting.
The operation for the class board includes re-roll,recreate,generateletter and setletter.
The operation for the class statistics includes display.
The operation for the class gamescore statistics includes display.
The operation for the class word statistics includes display.
Relationship.
There is view association between class statistics and class player.
There is choose association between class game and class player.
There is shown association between class board and class player.
There is generate association between class board and class game.
There is display association between class statistics and class game.
Assumption .
The is inheritence relationship between class statistics,gamescore statistics and word statistics.
The class statistics is the superclass and class gamescore statistics and word statistics are
subclasses.
The classes gamescore statistics and word statistics inherites some of attributes from the class
statistics.
Document Page
Requirement 1.
To realise this requirement I created class player and made play word game ,view statistics and
adjust the game settings are the methods of the class player.
Requirement 2.
To realise this requirement I created class game and made game end ,number of minutes and
defaulting as attributes then I assigned then interger values.
Requirement 3.
To realise this requirement I created class board with the squreboardsize, type, weight of letter,
letter and cost attributes then created the re-roll,recreate,generateletter and setletter methods.
Requirement 4.
To realise this requirement I created class board with the squreboardsize, type, weight of letter,
letter and cost attributes then created the re-roll,recreate,generateletter and setletter methods.
Requirement 5.
To realise this requirement I created classs statistics as super class then class game score statistic
and word stastics as the sublclass .
Requirement 6.
To realise this requirement I created class game score statistic and Finalgamescore, number of
times, Number of word and final score as the attributes
Requirement 7.
To realise this requirement I created class word statistic and word and number of times as the
attributes.
chevron_up_icon
1 out of 3
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]