Skip to content

Commit 72f1031

Browse files
authored
Merge pull request nus-cs2113-AY2324S1#13 from AY2324S1-CS2113-F11-3/master
Update
2 parents c2030dd + 3189f2b commit 72f1031

File tree

12 files changed

+107
-34
lines changed

12 files changed

+107
-34
lines changed

data/flashcards/flashcard.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
3 | cs2113 | software enginnering | 5
2-
5 | Hello | Duke | 5
1+
3 | cs2113 | software enginnering | 3
2+
5 | Hello | Duke | 4

docs/UserGuide.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ taking.
1818

1919
#### General explanation of flashcards
2020

21+
The difficulty symbolizes how hard it is for you to remember this particular
22+
flashcard. The higher the number, the harder.
23+
24+
The flashcard id is used to uniquely identify each flashcard. (Flashcard ids
25+
don't necessarily start at zero and are not necessarily consecutive. Don't
26+
worry about this; they are for internal use only and "gaps" between
27+
flashcard ids are totally fine)
28+
2129
#### Listing all flashcards: `list flashcards`
2230

2331
Prints out a list of all flashcards that shows each flashcard's front text
@@ -30,8 +38,8 @@ Format: `list flashcards`
3038
Starts the process of adding a new flashcard.
3139

3240
After entering this command, you are prompted to first input the front page
33-
text (once you have typed it out, submit it by pressing <ENTER>) and then the
34-
back page text (once you have typed it out, submit it by pressing <ENTER>) of
41+
text (once you have typed it out, submit it by pressing ENTER) and then the
42+
back page text (once you have typed it out, submit it by pressing ENTER) of
3543
your new flashcard.
3644

3745
After you've done this, a success message will be printed out. This
@@ -58,7 +66,7 @@ mode`.
5866
Once you've selected a review mode, the actual review begins: the front page
5967
of a flashcard is shown to you. You should now try and think of the answer
6068
(the text on the back page of the flashcard); and once you're ready, press
61-
<ENTER> to compare it to the actual back page.
69+
ENTER to compare it to the actual back page.
6270

6371
In spaced repetition mode, after you have revealed the back page of a
6472
flashcard, you are prompted to rate how to difficult it was to remember.
@@ -69,7 +77,7 @@ flashcard you just reviewed.
6977
Now, the process repeats and the next flashcard is shown to you.
7078

7179
If you want to quit the review process, simply input `q` or `quit` instead
72-
of pressing <ENTER> to reveal the back page.
80+
of pressing ENTER to reveal the back page.
7381

7482
Format: `create flashcard`
7583

@@ -81,7 +89,7 @@ After entering this command, you are prompted to input the id of the
8189
flashcard you want to delete. Input it into the terminal and then press enter.
8290

8391
If it was a valid id, the flashcard with that id is deleted; otherwise, an
84-
error message is shown and you are prompted to retry.
92+
error message is shown, and you are prompted to retry.
8593

8694
Format: `delete flashcard`
8795

@@ -91,9 +99,6 @@ Deletes all flashcards that you have added so far.
9199

92100
Format: `delete all flashcards`
93101

94-
95-
96-
97102
### General Explanation of Calendar Features
98103

99104
Here is your features list:

docs/team/bangjunhyeong.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/team/brian030601.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Kherlen Bayasgalan (brian030601) - Project Portfolio Page
2+
3+
## Overview
4+
5+
TaskLinker is a CLI-tool for university students to memorize flashcards,
6+
review, and track them through their calendar. The calendar can also be
7+
used for tracking general events in their normal and academic life.
8+
9+
## Summary of Contributions
10+
11+
### Code contribution
12+
13+
My code contribution can be found in the following link:
14+
[[Click Here To See] ](https://nus-cs2113-ay2324s1.github.io/tp-dashboard/?search=brian030601&breakdown=false&sort=groupTitle%20dsc&sortWithin=title&since=2023-09-22&timeframe=commit&mergegroup=&groupSelect=groupByRepos)
15+
16+
### Contributions to the UG
17+
18+
### Enhancements implemented
19+
20+
### Contributions to the DG
21+
22+
### Review/mentoring contributions
23+
24+
### Contributions to team-based tasks
25+
26+
- I came to weekly meetings and contributed to the group through sharing my ideas.
27+
- I helped update our Google Doc weekly for it to reflect our progress
28+
-

docs/team/junhyeong0411.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Bang Junhyeong - Project Portfolio Page
2+
3+
## Overview
4+
5+
TaskLinker is a CLI-tool for helping university students memorize flashcards and track their flashcard and general academic progress in the courses they are taking.
6+
7+
### Summary of Contributions
8+
9+
Given below are my contributions to the project.
10+
11+
#### Code contribution
12+
- You can find the code contribution [here](https://nus-cs2113-ay2324s1.github.io/tp-dashboard/?search=&sort=groupTitle&sortWithin=title&timeframe=commit&mergegroup=&groupSelect=groupByRepos&breakdown=true&checkedFileTypes=docs~functional-code~test-code&since=2023-09-22&tabOpen=true&tabType=authorship&tabAuthor=junhyeong0411&tabRepo=AY2324S1-CS2113-F11-3%2Ftp%5Bmaster%5D&authorshipIsMergeGroup=false&authorshipFileTypes=docs~functional-code~test-code&authorshipIsBinaryFileTypeChecked=false&authorshipIsIgnoredFilesChecked=false).
13+
14+
#### Enhancements implemented
15+
- Feature: Implemented everything related to storage.
16+
-
17+
18+
#### Contributions to the UG
19+
20+
#### Contributions to the DG:
21+
22+
#### Contributions to team-based tasks
23+
24+
#### Review/mentoring contributions

docs/team/kherlenbayasgalan.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/team/wendelinwemhoener.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,29 @@
22

33
## Overview
44

5+
TaskLinker is a CLI-tool for helping university students memorize flashcards
6+
and track their flashcard and general academic progress in the courses they are
7+
taking.
58

6-
### Summary of Contributions
9+
## Summary of Contributions
10+
11+
### Code Contribution
12+
13+
See my code contribution [here on the tP Code Dashboard](https://nus-cs2113-ay2324s1.github.io/tp-dashboard/?search=wendelinwemhoener&breakdown=true)
14+
15+
### Contributions to the UG
16+
17+
### Contributions to the DG
18+
19+
### Contributions to team-based tasks
20+
21+
- I set up the GitHub team org, created the project board on GitHub and set
22+
up the "developers" team on GitHub
23+
- I set up the repo and set up GitHub Pages
24+
- I set up the issue tracker
25+
- I was responsible for release management (as well as setting up milestones)
26+
- I documented target user profile and value proposition in UG/DG
27+
- I set up the Google Doc we used for coordinating the project in the
28+
initial phase
29+
- I set up and administrated our Telegram chat group to allow for easy and
30+
efficient communication

src/main/java/seedu/duke/Duke.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ private void run() {
3131
fc.processInput(input);
3232
} else if (cm.isResponsible(input)) {
3333
cm.processInput(input);
34-
} else if (input.equals("exit")) {
34+
} else if (input.toLowerCase().strip().equals("exit")) {
3535
System.out.println(" You are exiting TaskLinker! Bye!");
3636
break;
37-
} else if (input.startsWith("help")) {
37+
} else if (input.toLowerCase().strip().equals("help")) {
3838
printHelp();
3939
} else {
4040
System.out.println(" Invalid command! Please try again.");

src/main/java/seedu/duke/flashcard/Flashcard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public String getBackText() {
7979
public String toString() {
8080
return "front text: " + frontText + System.lineSeparator()
8181
+ "back text: " + backText + System.lineSeparator()
82-
+ "id: " + id
82+
+ "id: " + id + System.lineSeparator()
8383
+ "difficulty: " + difficulty + System.lineSeparator();
8484
}
8585

src/main/java/seedu/duke/flashcard/FlashcardCommandParser.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ public class FlashcardCommandParser {
2424
public FlashcardCommand parseInput(String input) {
2525
assert input != null : "input is null";
2626

27-
if (input.startsWith("create flashcard")) {
27+
input = input.toLowerCase().strip();
28+
29+
if (input.equals("create flashcard")) {
2830
return new CreateFlashcardCommand();
29-
} else if (input.startsWith("list flashcards")) {
31+
} else if (input.equals("list flashcards")) {
3032
return new ListFlashcardsCommand();
3133
} else if (input.startsWith("review flashcards")) {
3234
return new StartReviewCommand(input);
33-
} else if (input.startsWith("delete all flashcards")) {
35+
} else if (input.equals("delete all flashcards")) {
3436
return new DeleteAllFlashcardsCommand();
3537
} else if (input.startsWith("delete flashcard")) {
3638
return new DeleteFlashcardCommand(input);

0 commit comments

Comments
 (0)