Starter code for the Duke project
Look at all the items in your task list.
Delete a task in your list.
Add a task to your list. You can add a ToDo, Deadline or Event task.
Marking a task in your list as done.
Gives you a random trivia fact.
Exits the program.
list
- Lists all current tasks in your task listLists all the current tasks in your task list, and their completion status.
Example of usage:
list
Expected outcome:
Here are the tasks in your list!
1. [T][✔] sleep
2. [D][✘] homework by: Feb 28 2020
delete
- Deletes task from the task listDeletes the task at the number specified from the task list.
Example of usage:
delete 1
Expected outcome:
Understood. I've deleted this task:
[D][✔] homework by: Feb 28 2020
Now you have 3 tasks in the list.
todo
- Adds a todo task to your task listAdds a task categorised as a todo to your task list.
Example of usage:
todo buy groceries
Expected outcome:
Got it. I've added this task:
[T][✘] buy groceries
Now you have 4 tasks in the list.
deadline
- Adds a deadline task to your task listAdds a task categorized as a deadline to your task list. Dates should be entered in the YYYY-MM-DD format
Example of usage:
deadline CS1231 Homework /by 2020-02-28
Expected outcome:
Got it. I've added this task:
[D][✘] CS1231 Homework by: Feb 28 2020
Now you have 5 tasks in the list.
event
- Adds an event task to your task listAdds a task categorized as an even to your task list. Dates should be in the YYYY-MM-DD format.
Example of usage:
event meeting /at 2020-02-28
Expected outcome:
Got it. I've added this task:
[E][✘] meeting at: 28 Feb 2020
Now you have 1 tasks in the list.
done
- Marks a task in your task list as doneMarks the task specified by the task number in your task list as done.
Example of usage:
done 4
Expected outcome:
Alright! I've marked this task as done:
[D][✔] CS3230 Assignment by: Mar 1 2020
trivia
- Mr. Duke tells you a random triviaYou will be shown a random trivia fun fact!
Example of usage:
trivia
Expected outcome:
Did you know?
Coca-Cola was the first soft drink in space!
bye
- Exits the applicationExits the application upon the entry of the command ‘bye’.
Example of usage:
bye
Expected outcome: The Mr. Duke window will close.
The GUI was done based on the JavaFX Tutorial written by Jeffry Lum