Skip to content

Commit 5dfcd28

Browse files
Add deleting flashcards to UG
1 parent b0a159a commit 5dfcd28

File tree

1 file changed

+74
-45
lines changed

1 file changed

+74
-45
lines changed

docs/UserGuide.md

Lines changed: 74 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -9,80 +9,92 @@ taking.
99
## Quick Start
1010

1111
1. Ensure that you have Java 11 or above installed.
12-
2. Down the latest jar from [the latest release on GitHub]
13-
(https://github.com/AY2324S1-CS2113-F11-3/tp/releases).
12+
2. Down the latest jar from [the latest release on GitHub](https://github.com/AY2324S1-CS2113-F11-3/tp/releases).
1413
3. Run the jar via `java -jar duke.jar`
1514

16-
## General explanation of flashcards
17-
1815
## Features
1916

20-
### Listing all flashcards: `list flashcards`
21-
22-
Prints out a list of all flashcards.
23-
24-
Format: `list flashcards`
17+
### Flashcard-related features
2518

26-
### Adding a todo: `todo`
27-
Adds a new item to the list of todo items.
19+
#### General explanation of flashcards
2820

29-
Format: `todo n/TODO_NAME d/DEADLINE`
30-
31-
* The `DEADLINE` can be in a natural language format.
32-
* The `TODO_NAME` cannot contain punctuation.
33-
34-
Example of usage:
21+
#### Listing all flashcards: `list flashcards`
3522

36-
`todo n/Write the rest of the User Guide d/next week`
23+
Prints out a list of all flashcards that shows each flashcard's front text
24+
and back text as well as its id and current difficulty level.
3725

38-
`todo n/Refactor the User Guide to remove passive voice d/13/04/2020`
26+
Format: `list flashcards`
3927

40-
### Creating a new flashcard: `create flashcard`
28+
#### Creating a new flashcard: `create flashcard`
4129

4230
Starts the process of adding a new flashcard.
4331

44-
After entering this command, you are prompted to first input the front page
45-
text (once you have typed it out, submit it by pressing <ENTER>) and then the
46-
back page text (once you have typed it out, submit it by pressing <ENTER>) of
32+
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
4735
your new flashcard.
4836

49-
After you've done this, a success message will be printed out. This
37+
After you've done this, a success message will be printed out. This
5038
indicates that a new flashcard has been successfully created and saved.
5139

5240
Format: `create flashcard`
5341

54-
### Reviewing your flashcards: `review flashcards`
42+
#### Reviewing your flashcards: `review flashcards`
5543

5644
Starts the process of reviewing flashcard.
5745

58-
After entering this command, you are prompted to select your exact review
59-
mode from 3 choices:
46+
After entering this command, you are prompted to select your exact review
47+
mode from two choices:
6048

6149
- `random mode`: Randomly selects flashcards to review
62-
- `spaced repetition mode`: Which flashcards are shown depends on how well
63-
you previously knew them. Flashcards which you couldn't remember well are
64-
shown more often, while flashcards which you remembered well are shown
50+
- `spaced repetition mode`: Which flashcards are shown depends on how well
51+
you previously knew them. Flashcards which you couldn't remember well are
52+
shown more often, while flashcards which you remembered well are shown
6553
less often.
66-
- `review by tag mode`: Randomly selects flashcards with a certain tag to review
6754

68-
Input `a` to choose `random mode`, input `b` to choose `spaced repetition
69-
mode` and input `c` to choose `review by tag mode`.
55+
Input `a` to choose `random mode`, or input `b` to choose `spaced repetition
56+
mode`.
7057

71-
Once you've selected a review mode, the actual review begins: the front page
72-
of a flashcard is shown to you. You should now try and think of the answer
73-
(the text on the back page of the flashcard); and once you're ready, press
58+
Once you've selected a review mode, the actual review begins: the front page
59+
of a flashcard is shown to you. You should now try and think of the answer
60+
(the text on the back page of the flashcard); and once you're ready, press
7461
<ENTER> to compare it to the actual back page.
7562

63+
In spaced repetition mode, after you have revealed the back page of a
64+
flashcard, you are prompted to rate how to difficult it was to remember.
65+
Select `E` if it was easy, `M` if it was moderately hard and `H` if it was
66+
quite hard. This information is used to adjust the difficulty of the
67+
flashcard you just reviewed.
68+
7669
Now, the process repeats and the next flashcard is shown to you.
7770

78-
If you want to quit the review process, simply input `q` or `quit` instead
71+
If you want to quit the review process, simply input `q` or `quit` instead
7972
of pressing <ENTER> to reveal the back page.
8073

8174
Format: `create flashcard`
8275

83-
## General Explanation of Calendar Features
76+
#### Deleting a flashcard
8477

85-
## Features
78+
Starts the process of deleting a flashcard.
79+
80+
After entering this command, you are prompted to input the id of the
81+
flashcard you want to delete. Input it into the terminal and then press enter.
82+
83+
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.
85+
86+
Format: `delete flashcard`
87+
88+
#### Deleting all flashcards: `delete all flashcards`
89+
90+
Deletes all flashcards that you have added so far.
91+
92+
Format: `delete all flashcards`
93+
94+
95+
96+
97+
### General Explanation of Calendar Features
8698

8799
Here is your features list:
88100

@@ -92,7 +104,24 @@ Here is your features list:
92104

93105
Users can use the above features to handle their events
94106

95-
### Add an Event to the Calendar
107+
#### Adding a todo: `todo`
108+
109+
Adds a new item to the list of todo items.
110+
111+
Format: `todo n/TODO_NAME d/DEADLINE`
112+
113+
* The `DEADLINE` can be in a natural language format.
114+
* The `TODO_NAME` cannot contain punctuation.
115+
116+
Example of usage:
117+
118+
`todo n/Write the rest of the User Guide d/next week`
119+
120+
`todo n/Refactor the User Guide to remove passive voice d/13/04/2020`
121+
122+
123+
124+
#### Add an Event to the Calendar
96125

97126
**Adds an event to the calendar with start and end time**
98127

@@ -110,7 +139,7 @@ Users can use the above features to handle their events
110139
+ `When does it start?: 2023-12-20T12:30:30`
111140
+ `When does it end?: 2023-12-20T12:40:30`
112141

113-
### Delete an Event From the Calendar
142+
#### Delete an Event From the Calendar
114143

115144
**deletes an event from the calendar with event name**
116145

@@ -124,7 +153,7 @@ Users can use the above features to handle their events
124153
+ `Enter your command: delete event`
125154
+ `Enter the event name: Do HW`
126155

127-
### Delete All Events From the Calendar
156+
#### Delete All Events From the Calendar
128157

129158
**deletes all events from the calendar**
130159

@@ -136,11 +165,11 @@ Users can use the above features to handle their events
136165

137166
+ `Enter your command: delete all events`
138167

139-
### Find an Event From the Calendar
168+
#### Find an Event From the Calendar
140169

141170
**finds an event from the calendar**
142171

143-
#### Usage
172+
##### Usage
144173

145174
+ Format: `find event`
146175
+ What event are you looking for?: `event name`
@@ -150,7 +179,7 @@ Users can use the above features to handle their events
150179
+ `Enter your command: find event`
151180
+ `What event are you looking for?: Do HW`
152181

153-
### List All Events From the Calendar
182+
#### List All Events From the Calendar
154183

155184
**Lists all events from the calendar**
156185

0 commit comments

Comments
 (0)