Lan Zhan, the Duke, is a personal assistant chatbot that helps a person keep track of their tasks, deadlines and events.
Created by: Sruthi
- Ensure you have Java 11 or above installed in your machine.
- Go to the directory containing the jar file you have just downloaded
- Execute the command
java -jar duke.java
in your terminal
Allows users to add 3 different kinds of tasks:
- Todo: Only consists of the description of task
- Event: Consists of description of task and the date and time it's held at
- Deadline: Consists of description of task and the date and time it's due at
Allow users to:
- Complete the specific task they have finished
- Delete a specific task that they no longer want to see in their list
Allow users to:
- Undo their previous command if they have made a mistake
- View the whole list of tasks currently in their Task List
Allow users to find for tasks in the list based on keywords.
Just a fun additional command for the theme of this Duke Program, The Untamed where w
Allow users to exit from Lan Zhan's Duke Programme once they are done.
Creates a Todo Task which is then added to the Task List
Example of usage:
todo User Guide for Duke Program
Expected outcome:
[T][X] User Guide for Duke Program
New todo item added to the list!
There are now 1 todo items in the list
Creates an Event Task that has a date and time the event is being held at, which is then added to the Task List
Example of usage:
event CS2101 presentation /at 14/09/2020 1600
Expected outcome:
[E][X] CS2101 presentation (at: Sep 14 2020 4.00pm)
New todo item added to the list!
There are now 2 todo items in the list
Creates a Deadline Task that has a date and time the deadline is due at, which is then added to the Task List
Example of usage:
deadline CS3243 Project 1 /by 16/09/2020 2359
Expected outcome:
[D][X] CS3243 Project 1 (at: Sep 16 2020 11.59pm)
New todo item added to the list!
There are now 3 todo items in the list
Marks a task as complete based on the index given.
Example of usage:
done 2
Expected outcome:
\\(^o^)/ *.*.* \\(^o^)/
Yay! This task has been completed:
[E][O] CS2101 presentation (at: Sep 14 2020 4.00pm)
Deletes a task in the Task List based on the index given
Example of usage:
delete 4
Expected outcome:
Noted. This task has now been removed from the list:
[D][X] CS3243 Project 1 (at: Sep 16 2020 11.59pm)
There are now 2 todo items in the list
This command undoes the previous command given by the user
Example of usage:
undo
Expected outcome:
Noted. This task has now been added back to the list:
[D][X] CS3243 Project 1 (at: Sep 16 2020 11.59pm)
There are now 3 todo items in the list
Lists all the tasks in the Task List
Example of usage:
list
Expected outcome:
The tasks in your Todo List:
1. [T][X] User Guide for Duke Program
2. [E][O] CS2101 presentation (at: Sep 14 2020 4.00pm)
3. [D][X] CS3243 Project 1 (at: Sep 16 2020 11.59pm)
Find tasks based on the keywords given. This feature is case-sensitive.
Example of usage:
find presentation
Expected outcome:
Here are the matching tasks in your list:
1. [E][O] CS2101 presentation (at: Sep 14 2020 4.00pm)
A command created just for fun to follow The Untamed theme of this Duke Program.
Example of usage:
LanZhan
Expected outcome:
Wei Ying,
Why am I sitting here having such a useless conversation with you?
Go away!
Exits from Lan Zhan, the Duke Program.
Example of usage:
bye
Expected outcome:
*(^v^)
Bye. Hope to see you again soon!