-
Notifications
You must be signed in to change notification settings - Fork 231
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-F15-1] Player2113 #55
base: master
Are you sure you want to change the base?
[CS2113-F15-1] Player2113 #55
Conversation
Added more loggers
Update User Guide
docs/team/img/Results.puml
Outdated
Ui -> Parser : handleAnswerInputs(answer: String) | ||
activate Parser | ||
|
||
ref over Parser : get correct answer |
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 there's a missing sequence diagram here? maybe you can include the sequence diagram (esp for ref), such as the get correct answer?
docs/team/img/Results.puml
Outdated
|
||
box Results #EB9999 | ||
participant "topicResults:Results" as Results #FE2727 | ||
participant "allResults:ResultsList" as ResultsList #FE2727 |
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 you need to hide the class at the bottom of the diagram?
docs/team/img/Results.puml
Outdated
deactivate ResultsList | ||
|
||
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.
you may need to deactivate Ui activation in the end after -->[ ?
docs/team/img/Results.puml
Outdated
Ui -->[ | ||
|
||
destroy Results | ||
destroy Parser |
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.
maybe you should also destroy allResults?
docs/DeveloperGuide.md
Outdated
and proceeds to start a game with their chosen topic. | ||
|
||
The following shows the class diagram for `topicList`: | ||
![TopicList class diagram](./team/img/TopicList_Topic_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.
class may need to add + and - to show public and private?
docs/DeveloperGuide.md
Outdated
The solution feature is facilitated by `Parser#processSolutionCommand`, which is called by `Parser#parseCommand` | ||
|
||
> **OVERVIEW:** | ||
> ![Solution sequence diagram](./team/img/Solution.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.
in alt, maybe need to add [else] sign?
docs/DeveloperGuide.md
Outdated
The solution feature is facilitated by `Parser#processSolutionCommand`, which is called by `Parser#parseCommand` | ||
|
||
> **OVERVIEW:** | ||
> ![Solution sequence diagram](./team/img/Solution.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.
after calling the methods, i think you may need to add return arrow, even if void?
docs/DeveloperGuide.md
Outdated
The solution feature is facilitated by `Parser#processSolutionCommand`, which is called by `Parser#parseCommand` | ||
|
||
> **OVERVIEW:** | ||
> ![Solution sequence diagram](./team/img/Solution.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.
some method invocation got no name, maybe need to add the method name on it, instead of putting it on the return arrow?
docs/DeveloperGuide.md
Outdated
|
||
Similarly, the following sequence diagram shows how the | ||
`AnswerTracker` stores all the user answer inputs: | ||
![AnswerTracker sequence diagram](https://via.placeholder.com/100.png?text=Photo) |
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.
maybe add the diagram here? its empty?
|
||
## Glossary | ||
|
||
* *glossary item* - Definition |
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.
maybe also update the template here?
docs/DeveloperGuide.md
Outdated
and proceeds to start a game with their chosen topic. | ||
|
||
The following shows the class diagram for `topicList`: | ||
![TopicList class diagram](./team/img/TopicList_Topic_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.
docs/DeveloperGuide.md
Outdated
and proceeds to start a game with their chosen topic. | ||
|
||
The following shows the class diagram for `topicList`: | ||
![TopicList class diagram](./team/img/TopicList_Topic_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.
docs/DeveloperGuide.md
Outdated
and proceeds to start a game with their chosen topic. | ||
|
||
The following shows the class diagram for `topicList`: | ||
![TopicList class diagram](./team/img/TopicList_Topic_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.
docs/DeveloperGuide.md
Outdated
The solution feature is facilitated by `Parser#processSolutionCommand`, which is called by `Parser#parseCommand` | ||
|
||
> **OVERVIEW:** | ||
> ![Solution sequence diagram](./team/img/Solution.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
![ResultsList sequence diagram](./team/img/Results.png) | ||
> **Note:** The lifeline for Parser and Results should end | ||
> at the destroy marker (X) but due to a limitation of PlantUML, | ||
> the lifeline reaches the end of the diagram. | ||
|
||
Similarly, the following sequence diagram shows how the | ||
`AnswerTracker` stores all the user answer inputs: | ||
![AnswerTracker sequence diagram](https://via.placeholder.com/100.png?text=Photo) |
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
## Acknowledgements | ||
|
||
{list here sources of all reused/adapted ideas, code, documentation, and third-party libraries -- include links to the original source as well} | ||
|
||
## Design & implementation | ||
|
||
{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.
Shouldn't this line be deleted?
Step 1. The user launches the application for the first time, | ||
and proceeds to start a game with their chosen topic. | ||
|
||
The following sequence diagram shows how the `Results` for |
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.
Hi, the method calling solid line arrow for "new Results()" seems to not be pointing to the start of the activation bar.
docs/DeveloperGuide.md
Outdated
|
||
Similarly, the following sequence diagram shows how the | ||
`AnswerTracker` stores all the user answer inputs: | ||
![AnswerTracker sequence diagram](https://via.placeholder.com/100.png?text=Photo) |
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 the photo is not loaded correctly on the DG site
docs/DeveloperGuide.md
Outdated
|
||
Step 3. The user now wants to view their results by executing | ||
the `results` command. | ||
![Results command sequence diagram](https://via.placeholder.com/100.png?text=Photo) |
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.
Photo not loaded for this as well
docs/DeveloperGuide.md
Outdated
and proceeds to start a game with their chosen topic. | ||
|
||
The following shows the class diagram for `topicList`: | ||
![TopicList class diagram](./team/img/TopicList_Topic_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.
Class diagram for topicList should not have the C icon present, as I don't think it follows the standards stated.
docs/DeveloperGuide.md
Outdated
and proceeds to start a game with their chosen topic. | ||
|
||
The following shows the class diagram for `topicList`: | ||
![TopicList class diagram](./team/img/TopicList_Topic_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.
Missing of indication of private and public methods/ variables with "+/-" etc
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.
Generally good job! The notations of the diagrams seems to be compliant with the convention covered in the course. Maybe could add more diagram to enhance the developer guide understanding?
docs/DeveloperGuide.md
Outdated
|
||
The following sequence diagram shows how the `Results` for | ||
one question set is added to the `ResultsList`: | ||
![ResultsList sequence diagram](./team/img/Results.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 following sequence diagram shows how the `Results` for | ||
one question set is added to the `ResultsList`: | ||
![ResultsList sequence diagram](./team/img/Results.png) | ||
> **Note:** The lifeline for Parser and Results should end |
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 following sequence diagram shows how the `Results` for | ||
one question set is added to the `ResultsList`: | ||
![ResultsList sequence diagram](./team/img/Results.png) | ||
> **Note:** The lifeline for Parser and Results should end |
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 explanation of the ref
block would make it more comprehensible?
Step 1. The user launches the application for the first time, | ||
and proceeds to start a game with their chosen topic. | ||
|
||
The following shows the class diagram for `topicList`: |
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 line separator here to make the class diagram occupy a dedicated space would allow the format to be more readable.
The explain feature either prints the explanation to 1 question or all questions in 1 topic. | ||
|
||
The explain feature is facilitated by `Parser#processExplanationCommand`, which is called by `Parser#parseCommand` | ||
|
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 some diagram here would allow better understanding of developers?
docs/DeveloperGuide.md
Outdated
The solution feature is facilitated by `Parser#processSolutionCommand`, which is called by `Parser#parseCommand` | ||
|
||
> **OVERVIEW:** | ||
> ![Solution sequence diagram](./team/img/Solution.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 sequence diagram has many parts and may be slightly hard to understand initially, it would be good if you could break it down into parts when explaining, means showing just small sections of the sequence diagram
Step 2a: `Parser#processExplainCommand` first checks the number of parameters in the user command | ||
by calling `Parser#checkIfTwoParameters`. | ||
The, further processing of parameters is done by calling `Parser#getTopicOrQuestionNum`. | ||
This is facilitated by calling `QuestionsListByTopic#getQuestionSet` to get all questions in the specified topic. |
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.
maybe you could swap 2b and 2a since 2a is more related to step 3
docs/DeveloperGuide.md
Outdated
|
||
### Libraries | ||
|
||
1. Display formatted tables in the CLI - [ASCII TABLES](https://bethecoder.com/applications/products/asciiTable.action) |
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.
good that you included your references :)
docs/DeveloperGuide.md
Outdated
|--------|----------|---------------|------------------| | ||
|v1.0|new user|see usage instructions|refer to them when I forget how to use the application| | ||
|v2.0|user|find a to-do item by name|locate a to-do without having to go through the entire list| | ||
| Version | As a ... | I want to ... | So that I can ... | |
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.
maybe you could categorise the user stories by priorities and include their priority into the userstories table
docs/DeveloperGuide.md
Outdated
|
||
2. Topic selection menu and testing mode progress bar - [ProgressBar](https://github.com/ctongfei/progressbar) | ||
|
||
### References |
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.
Maybe remove references if there is nothing to add here
|
||
2. Topic selection menu and testing mode progress bar - [ProgressBar](https://github.com/ctongfei/progressbar) | ||
|
||
### References | ||
|
||
## Instructions for manual testing | ||
|
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.
Remember to remove this default text
docs/DeveloperGuide.md
Outdated
The solution feature is facilitated by `Parser#processSolutionCommand`, which is called by `Parser#parseCommand` | ||
|
||
> **OVERVIEW:** | ||
> ![Solution sequence diagram](./team/img/Solution.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.
Consider removing getters and setters as their functions are quite obvious
docs/DeveloperGuide.md
Outdated
and proceeds to start a game with their chosen topic. | ||
|
||
The following shows the class diagram for `topicList`: | ||
![TopicList class diagram](./team/img/TopicList_Topic_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.
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.
Overall nice work!
docs/DeveloperGuide.md
Outdated
|
||
Similarly, the following sequence diagram shows how the | ||
`AnswerTracker` stores all the user answer inputs: | ||
![AnswerTracker sequence diagram](./team/img/AnswerTracker.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
|
||
The following sequence diagram shows how the `Results` for | ||
one question set is added to the `ResultsList`: | ||
![ResultsList sequence diagram](./team/img/Results.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
|
||
The following sequence diagram shows how the `Results` for | ||
one question set is added to the `ResultsList`: | ||
![ResultsList sequence diagram](./team/img/Results.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
The solution feature is facilitated by `Parser#processSolutionCommand`, which is called by `Parser#parseCommand` | ||
|
||
> **OVERVIEW:** | ||
> ![Solution sequence diagram](./team/img/Solution.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.
Hi team,
Overall good job at making the DG!
- Please take note of the syntax issues with the diagrams and
- There are some sections of the DG that are incomplete. Please finish them.
- Most of the diagrams are OK in complexity, but consider scaling down some of the sequence diagrams.
Remember: guiding principle from the website...
Keep diagrams simple. The aim is to make diagrams comprehensible, not necessarily comprehensive.
Please do refer to AB3 DG for inspiration and tips on how to better structure and format your content.
> **Note:** The lifeline for Parser and Results should end | ||
> at the destroy marker (X) but due to a limitation of PlantUML, | ||
> the lifeline reaches the end of the diagram. |
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.
It should be possible to remove the bubbles at the bottom with some tinkering of PlantUML if I am not wrong. Alternatively, you may also crop the image.
docs/DeveloperGuide.md
Outdated
|
||
The following sequence diagram shows how the `Results` for | ||
one question set is added to the `ResultsList`: | ||
![ResultsList sequence diagram](./team/img/Results.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
|
||
Similarly, the following sequence diagram shows how the | ||
`AnswerTracker` stores all the user answer inputs: | ||
![AnswerTracker sequence diagram](./team/img/AnswerTracker.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
|
||
The following sequence diagram shows how the `Results` for | ||
one question set is added to the `ResultsList`: | ||
![ResultsList sequence diagram](./team/img/Results.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.
See if you can get reference frames to be opaque.
- For readability
- To adhere to textbook
Recall the textbook's notation on reference frames. This is a repeated issue for all your sequence diagrams
docs/DeveloperGuide.md
Outdated
|
||
Step 3. The user now wants to view their results by executing | ||
the `results` command. | ||
![Results command sequence diagram](./team/img/ViewResults.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.
A few issues:
- Unterminated activation bar for Parser
- Ref blocks not opaque
- The complexity is on the slightly higher side for this sequence diagram. You might want to consider refactoring
docs/DeveloperGuide.md
Outdated
and proceeds to start a game with their chosen topic. | ||
|
||
The following shows the class diagram for `topicList`: | ||
![TopicList class diagram](./team/img/TopicList_Topic_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.
Most of your peers have identified the bigger issues of the diagram, like the class circle and the access modifiers.
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.
Consider adding in a table of contents, similar to the reference Address Book DG
docs/DeveloperGuide.md
Outdated
|
||
2. Topic selection menu and testing mode progress bar - [ProgressBar](https://github.com/ctongfei/progressbar) | ||
|
||
### References | ||
|
||
## Instructions for manual testing |
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.
Please include details about manual testing here
docs/DeveloperGuide.md
Outdated
> **OVERVIEW:** | ||
> ![Solution sequence diagram](./team/img/Solution.png) | ||
|
||
> > **Note:** The lifeline for Parser and Results should end |
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.
Add hardcoded questions
Fix formatting for PPP
Update ppp
Fix formatting errors UG, DG
Update website
fix format in UG
Fix clear bug
Remove unnecessary code
# Conflicts: # src/main/java/seedu/duke/Parser.java
Merge branch 'master' of https://github.com/hongyijie06/tp
Fix ^D bug in sayHi()
Player2113 is a CLI based software to help CS2113 student revise concepts encountered in the course.