Skip to content
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

Enhance ui to improve user experience #90

Merged
merged 8 commits into from Oct 15, 2020

Conversation

Zhi-You
Copy link

@Zhi-You Zhi-You commented Oct 15, 2020

Fixes #89

@Zhi-You Zhi-You added type.Enhancement An enhancement to an existing story priority.Medium Nice to have labels Oct 15, 2020
@Zhi-You Zhi-You added this to the v1.0 milestone Oct 15, 2020
@Zhi-You Zhi-You requested a review from anqi20 October 15, 2020 06:54
@Zhi-You Zhi-You self-assigned this Oct 15, 2020
Copy link
Member

@kstonekuan kstonekuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

These are the available topics:
OOP
These are the available topics and the number of available questions in each:
OOP [1]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool idea to add the number of questions

Comment on lines +74 to +95
The number of quiz questions must be more than 1!
-------------------------------------------------------------------
-------------------------------------------------------------------
There is not enough questions in the topic for the quiz!
-------------------------------------------------------------------
-------------------------------------------------------------------
Start of quiz:
You have chosen to complete 1 question.
The topic chosen is: OOP
-------------------------------------------------------------------
1. What is encapsulation?

1) A
2) B
3) C
4) D
-------------------------------------------------------------------
-------------------------------------------------------------------
Please choose the answer using its index (1,2,3 or 4)!
-------------------------------------------------------------------
-------------------------------------------------------------------
Please choose only options 1, 2, 3 or 4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, good to check our exceptions

Copy link

@josephhhhhhhhh josephhhhhhhhh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, seems like the interactivity has been taken up which is really good! Solid enhancement.

+ System.lineSeparator()
+ "quiz t/<topic> n/<number of questions>";
+ System.lineSeparator() + "quiz t/<topic> n/<number of questions>" + System.lineSeparator()
+ "(Topics available can be found using the \"topics\" command)";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh thank you for adjusting the formatting!

Comment on lines -47 to +50
return new IncorrectCommand("Please choose only 1, 2, 3 or 4");
return new IncorrectCommand(ERROR_QUIZ_ANSWER_INDEX_OUT_OF_BOUNDS);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh sorry I missed this out!

Comment on lines -42 to +43
private static final String MESSAGE_ANSWER_CORRECT = "Congrats! This answer is correct! Well Done!";
private static final String MESSAGE_ANSWER_CORRECT = "Great Job! That is the correct answer! Keep it up!";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, it sounds a lot nicer!

@anqi20 anqi20 merged commit ab31d1b into AY2021S1-CS2113T-F12-3:master Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.Medium Nice to have type.Enhancement An enhancement to an existing story
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance Ui to improve user experience
4 participants