Duke is a Personal Assistant Chatbot that helps a person keep track of various things in the form of tasks.
There are 3 types of Tasks:
- todo
- Tasks without any date attached to it.
- event
- Tasks that need to be done before a specific date.
- deadline
- Tasks that start at a specific time and ends at a specific time.
Duke can perform the following:
- Add a task
- Delete a task
- Mark a task as completed
- Find a specific task using a given keyword
- List out all tasks
- Undo a command
- Exit
- Locate the jar file in the File Explorer
- Type 'cmd' on the search bar and press 'Enter' to launch Command Prompt
- Execute the following command, assuming the jar file
is named "duke-0.2.jar"
-
java -jar -Dfile.encoding="UTF-8" duke-0.2.jar
-
The specific steps used to add a task depends on the task type.
You can add a task to your list by using one of the following keywords:
- todo
- event
- deadline
Adding a new todo task requires the following format:
todo [description]
A description is required for adding a new todo task.
Example of usage:
todo Pwn the Deus Group
Expected outcome:
Adding a new event task requires the following format:
event [description] /at [event time in yyyy-mm-dd]
Example of usage:
event Five/Nine /at 2015-05-09
Expected outcome:
Adding a new deadline task requires the following format:
deadline [description] /by [due date in yyyy-mm-dd]
Example of usage:
deadline Coding Assignment /by 2020-02-02
Expected outcome:
Allows you to remove a task.
Removes a task by providing a task number.
The task number starts from 1 and has a maximum value based on the number of tasks in your list.
Unsure of the task number?
You can check using the
list
command!
Removing a task requires one of the following format:
delete [task number]
rm [task number]
Example of usage:
delete 1
rm 1
Expected outcome:
Allows you to mark a task as done.
Mark a task as done by providing a task number.
The task number starts from 1 and has a maximum value based on the number of tasks in your list.
Unsure of the task number?
You can check using the
list
command!
Marking a task as done requires the following format:
done [task number]
Example of usage:
done 1
Expected outcome:
Allows you to find all tasks with descriptions matching a given keyword.
Returns a list of tasks that have descriptions matching the given keyword.
Finding a task requires the following format:
find [keyword to search]
Example of usage:
find deus group
Expected outcome:
Allows you to view all tasks.
Displays a list of tasks.
Example of usage:
list
ls
Expected outcome:
Allows you to revert actions done on your list.
You can undo commands up to the initial starting state of your list (When you first launch the application)
No action will be performed if the list has returned to the state when the application was first launched.
Example of usage:
undo
Expected outcome:
Undo is not possible
Nothing to undo...
Undo is possible
Command to terminate application.
Example of usage:
bye
Expected outcome:
GUI was done using the JavaFX Tutorial done by Jeffry Lum
User icon image obtained from https://www.hiclipart.com/free-transparent-background-png-clipart-dlzoi/
Mr Robot icon: By USA Network - USA Network, Public Domain, https://commons.wikimedia.org/w/index.php?curid=49685837