Starter code for the Duke project
Duke is a Chatbot Personal Assistant to help keep track of various types of tasks.
The types of tasks are:
Duke can:
The type of task that can be added are:
todo
- Add new todo
Format: todo [name]
Provide a name for Duke to associate the todo to.
Example of usage: todo read book
Expected outcome:
event
- Add new event
Format: event [name] /at [date in ANY format]
Provide a name for Duke to associate the event to.
Example of usage: event book fair /at 25 Jan 07
Expected outcome:
deadline
- Add new deadline
Format: deadline [name] /by [date in yyyy-mm-dd]
Provide a name for Duke to associate the deadline to.
Example of usage:
deadline submit essay /by 2020-08-06
Expected outcome:
Delete an existing task.
delete
- Delete task
Delete a task based on its index in the list. To find out a task’s index,
check using the list
command.
Format:
delete [index]
Example of usage: delete 3
Expected outcome:
Complete an existing task.
done
- Complete a task
Complete a task and mark it as done based on its index in the list.
To find out a task’s index, check using the list
command.
Format:
done [index]
Example of usage: done 2
Expected outcome:
Shows all tasks.
list
- List tasks
Display list of all tasks.
Example of usage: list
Expected outcome:
Finds tasks with names containing the keyword.
find
- Find task that contains a given keyword
Returns a list of tasks with names that contain the given keyword.
Format:
find [keyword]
Example of usage: find book
Expected outcome:
Tasks will be sorted by type and date/time.
When find
or list
commands are run, the list generated and displayed
will be sorted by type in the order Todo, Event and Deadline. Deadlines
are sorted chronologically by their date/time.
Close application
bye
- Close application
Returns a list of tasks with names that contain the given keyword.
Example of usage: bye
GUI done with JavaFX Tutorial by Jeffry Lum
Da Vinci from https://upload.wikimedia.org/wikipedia/commons/b/ba/Leonardo_self.jpg
Mona Lisa from https://upload.wikimedia.org/wikipedia/commons/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg