-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CS2113-T14-1] TheGreatDetective #41
base: master
Are you sure you want to change the base?
[CS2113-T14-1] TheGreatDetective #41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Week 11 Tutorial
======= | ||
The class diagram below shows how the parser interacts with the other classes | ||
|
||
![Parser class diagram design](./ParserClassDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here’s a (partial) class diagram of the `Command` component: | ||
|
||
|
||
![(partial class) diagram of Command component](./Command_Class_Diagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
## Design & implementation | ||
## Design |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May want to increase the font size of your sequence diagrams as it is abit difficult to read.
docs/DeveloperGuide.md
Outdated
- Print messages to terminal depending on the scene. | ||
- Print corresponding output to terminal according to input command. | ||
|
||
[UML diagram for Ui](./UiUML.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link to the UML diagram is broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Sequence Diagram [below](./next_command_sequence_diagram.png) illustrates within the `Command` component for the `execute(ui,investigation,sceneList)` method call of the `NextCommand` class. | ||
|
||
|
||
![Sequence diagram for execute(ui,investigation,sceneList) method call of NextCommand](./next_command_sequence_diagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @titustortoiseturtle1999, but nice job on colouring the different sections to allow us to differentiate the different sections.
The Sequence Diagram [below](./next_command_sequence_diagram.png) illustrates within the `Command` component for the `execute(ui,investigation,sceneList)` method call of the `NextCommand` class. | ||
|
||
|
||
![Sequence diagram for execute(ui,investigation,sceneList) method call of NextCommand](./next_command_sequence_diagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think activations bars are optional, but as some of your other diagrams included it, you may want to standardize it.
|
||
{Describe the design and implementation of the product. Use UML diagrams and short code snippets where applicable.} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel that there could be a section here to cover the target user and the value proposition of the product, as well as maybe a brief overview of what it does.
docs/DeveloperGuide.md
Outdated
Then read the file and store the information into array list using ```ArrayList<String> content = file.readFile()```. | ||
Eventually, edit the content and rewrite to data file using ```file.rewriteFile(content)``` | ||
|
||
###Taking Notes For Specified Scene |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This paragraph feels a little wordy, and the length makes it disinteresting to the reader. You could consider reformatting it into something more digestible.
docs/DeveloperGuide.md
Outdated
|
||
### Architecture | ||
![High Level Architectural design](./main_architecture.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps you can also add a :
to all your class names, like :Duke
or :Ui
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add a :
to the name of the classes too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this diagram needed here? As it is repeated again below at line 53.
docs/DeveloperGuide.md
Outdated
|
||
{Describe the value proposition: what problem does it solve?} | ||
###Main components of the architecture |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to add a space after your ###
to allow GitHub pages to render properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Sequence Diagram [below](./next_command_sequence_diagram.png) illustrates within the `Command` component for the `execute(ui,investigation,sceneList)` method call of the `NextCommand` class. | ||
|
||
|
||
![Sequence diagram for execute(ui,investigation,sceneList) method call of NextCommand](./next_command_sequence_diagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think activations bars are optional, but as some of your other diagrams included it, you may want to standardize it.
The Sequence Diagram [below](./next_command_sequence_diagram.png) illustrates within the `Command` component for the `execute(ui,investigation,sceneList)` method call of the `NextCommand` class. | ||
|
||
|
||
![Sequence diagram for execute(ui,investigation,sceneList) method call of NextCommand](./next_command_sequence_diagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @titustortoiseturtle1999, but nice job on colouring the different sections to allow us to differentiate the different sections.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed some errors with the headers, as well as some potential mistakes in the sequence diagrams.
docs/DeveloperGuide.md
Outdated
|
||
{Describe the value proposition: what problem does it solve?} | ||
###Main components of the architecture |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
The Sequence Diagram below shows how the components interact with each other for the scenario where the user issues the command `/next`. | ||
|
||
![High Level Sequence Diagram for main architecture](./main_architecture.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this image supposed to be here or in line 23? Because I notice that it is the same exact image main_architecture.png.
|
||
**How the architecture components interact with each other** | ||
|
||
The Sequence Diagram below shows how the components interact with each other for the scenario where the user issues the command `/next`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/DeveloperGuide.md
Outdated
Then read the file and store the information into array list using ```ArrayList<String> content = file.readFile()```. | ||
Eventually, edit the content and rewrite to data file using ```file.rewriteFile(content)``` | ||
|
||
###Taking Notes For Specified Scene |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The first investigation scene has a `SuspectList` containing one name, "Father", | ||
and four clues within its corresponding `Suspect` class. | ||
|
||
![](Suspect.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @RemusTeo. A constructor box should be added here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few rendering errors and a few errors with some of the sequence diagrams as well.
docs/DeveloperGuide.md
Outdated
## Content Page | ||
* [Architecture](#Architecture) | ||
* [Main Components of the Architecture](#Main-components-of-the-architecture) | ||
* [Parser Component](#Parser-component) | ||
* [Note Component](#Note-component) | ||
* [UI Component](#UI-component) | ||
* [Command Component](#Command-component) | ||
* [Investigation Component](#Investigation-component) | ||
* [Scene Component](#Scene-component) | ||
* [Storage Component](#Storage-component) | ||
* [Suspect Component](#Suspect-component) | ||
* [Implementation](#Implementation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add the appropriate links to correct the navigation as currently, it does not navigate to the correct sub-header.
docs/DeveloperGuide.md
Outdated
|
||
### Architecture | ||
![High Level Architectural design](./main_architecture.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/DeveloperGuide.md
Outdated
|
||
### Architecture | ||
![High Level Architectural design](./main_architecture.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add a :
to the name of the classes too.
docs/DeveloperGuide.md
Outdated
|
||
### Architecture | ||
![High Level Architectural design](./main_architecture.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this diagram needed here? As it is repeated again below at line 53.
docs/DeveloperGuide.md
Outdated
|
||
{Describe the value proposition: what problem does it solve?} | ||
###Main components of the architecture |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/DeveloperGuide.md
Outdated
`Parser` component for the `getCommandFromUser("/next")` API call. | ||
|
||
![Parser design](./ParserUML.png) | ||
The class diagram below shows how the parser interacts with the other classes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If Parser
is calling new NextCommand()
shouldn't the arrow go to the :NextCommand
box, with a constructor below?
docs/DeveloperGuide.md
Outdated
- Print messages to terminal depending on the scene. | ||
- Print corresponding output to terminal according to input command. | ||
|
||
[UML diagram for Ui](./UiUML.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The first investigation scene has a `SuspectList` containing one name, "Father", | ||
and four clues within its corresponding `Suspect` class. | ||
|
||
![](Suspect.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @RemusTeo. A constructor box should be added here as well.
See below for example. | ||
- The introduction scene shows the introductory message to the user. | ||
- The investigation scene asks the user either investigate a suspect or look into a clue. | ||
![](Scene.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/DeveloperGuide.md
Outdated
At first ```Storage file = new Storage("name.txt")```, initialise the ```Storage``` class type with the name of the file. | ||
Then ```file.checkPath()``` will check for existing data file and creates a new data file if the path ```./Data/name.txt```is invalid. | ||
Then read the file and store the information into array list using ```ArrayList<String> content = file.readFile()```. | ||
Eventually, edit the content and rewrite to data file using ```file.rewriteFile(content)``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps a diagram can be included here to allow visualisation of how the storage component works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implement narrative lines command
Improve ending gameplay
…into branch_note_newest
…r input (from word -> int)
Update both ending narratives
Update investigation to fix bug
update DG
Changed javadocs in mf ppp
Update PPP, UG, DG
Update PPP
Pp pupdates
Fix end scene bug
Update about us and UG
…tch-1 Update DeveloperGuide.md
TheGreatDetective gives curious and adventurous players a chance to solve murder mysteries.