Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
d839859
Add Gradle support
May 24, 2020
43f50f9
Added Echo function.
ksw95 Aug 31, 2021
2242092
Added StartDuke function
ksw95 Aug 31, 2021
088a149
Added Greet function.
ksw95 Aug 31, 2021
a1c46fe
Added line string to Greet and Echo functions.
ksw95 Aug 31, 2021
4ceb83e
Added Level1 function.
ksw95 Aug 31, 2021
64a8703
Added Add function.
ksw95 Aug 31, 2021
71fc3a4
Added PrintList function.
ksw95 Aug 31, 2021
fc9e9bc
Edited Add function.
ksw95 Aug 31, 2021
b20b420
Added printing of lines to Add and PrintList functions.
ksw95 Aug 31, 2021
b7b547d
Added Level2 function.
ksw95 Aug 31, 2021
d4b8c08
Edited Echo function so it can print inputs with spaces.
ksw95 Aug 31, 2021
c304110
Changed Add function name to AddDisplayList function.
ksw95 Aug 31, 2021
4dd50ba
Created Task Class with addTask and printChecklist functions.
ksw95 Sep 7, 2021
6059473
Removed addTask and printChecklist functions from and added getDescri…
ksw95 Sep 7, 2021
e196041
Added TaskList, AddTask, PrintChecklist and Level3 functions to Duke.…
ksw95 Sep 7, 2021
058787c
Added getTaskinfo and markCompleted functions in Task.java
ksw95 Sep 7, 2021
576c6a7
Edited Tasklist function to mark tasks as completed. Added MarkTask f…
ksw95 Sep 7, 2021
44d0322
Edited Tasklist function to handle index input outside of the array.
ksw95 Sep 7, 2021
d9176ac
Refactored code in Duke.java
ksw95 Sep 27, 2021
a7c24ea
Added Todo java class to project
ksw95 Sep 27, 2021
27cc709
Added Todo constructor method.
ksw95 Oct 8, 2021
289f0de
Override getCompleteSymbol method in Todo.java
ksw95 Oct 8, 2021
a71bd48
Aesthetics changes.
ksw95 Oct 8, 2021
bf76cb1
Created Deadlines class
ksw95 Oct 8, 2021
4fac2ff
Added deadline class variables and constructor.
ksw95 Oct 8, 2021
f360dbb
Override getCompletedSymbol method in Deadlines.java class.
ksw95 Oct 8, 2021
f8296ce
Override getTaskInfo method in Deadlines.java class.
ksw95 Oct 8, 2021
b75732c
Rename Deadlines class to Deadline and changed deadline variable to by.
ksw95 Oct 9, 2021
0cce455
Created Event class and constructor
ksw95 Oct 9, 2021
872d2d6
Override getCompletedSymbol method in Event.java class.
ksw95 Oct 9, 2021
9521b5f
Override getTaskInfo method in Event.java class.
ksw95 Oct 9, 2021
b3350ca
Added PrintTaskCount method to Duke.java class
ksw95 Oct 9, 2021
66a878c
Added ExtendTaskList method to duke.java class.
ksw95 Oct 10, 2021
247c692
Edited ExtendTaskList method in duke.java class
ksw95 Oct 10, 2021
04533e7
Created Level4() method in duke.java class.
ksw95 Oct 10, 2021
9671688
Deleted now unused methods in Duke.java
ksw95 Oct 18, 2021
b728fcd
Refactoring Duke.java
ksw95 Oct 18, 2021
a36d64e
Refactor Duke.java
ksw95 Oct 18, 2021
dcc9464
Edited for aesthetic reasons.
ksw95 Oct 18, 2021
eac94a8
Created DukeException class with variables and methods.
ksw95 Oct 18, 2021
509abcb
Refactor CheckValidTodo and added AddTodo method with error handling.
ksw95 Oct 18, 2021
313d4d9
Added AddDeadline method and edited CheckValidDeadline to use excepti…
ksw95 Oct 18, 2021
e1992e1
Created AddEvent method and edited CheckValidEvent method to use exce…
ksw95 Oct 18, 2021
d99dc26
Created MarkDone method and CheckValidDone method to use exceptions t…
ksw95 Oct 18, 2021
ac596ef
Edited error messages for aesthetics.
ksw95 Oct 18, 2021
9d2d0ef
Edited typo.
ksw95 Oct 18, 2021
f95a402
Refactoring Duke.java
ksw95 Oct 18, 2021
7e43832
Changed data structure used to store Task from Task Arrays to ArrayLi…
ksw95 Oct 18, 2021
ba77502
Edited ExtendTaskList method to include delete capability.
ksw95 Oct 18, 2021
0a8c5bc
Added DeleteTask method to Duke.java
ksw95 Oct 18, 2021
021b4ec
Added CheckValidDelete method to Duke.java
ksw95 Oct 18, 2021
9923f6e
Added DeleteIndex method to Duke.java
ksw95 Oct 18, 2021
00f5ddd
Added RemoveTask method to Duke.java
ksw95 Oct 18, 2021
945d273
Bug fix to prevent exception outofbounds.
ksw95 Oct 18, 2021
8e4acdf
Edited printed strings.
ksw95 Oct 18, 2021
938d7f3
Added more error handling
ksw95 Oct 18, 2021
3522d70
Edited for aesthetic reasons.
ksw95 Oct 18, 2021
fdd1df5
Refactoring ExtendTaskList method
ksw95 Oct 19, 2021
29d0894
Refactoring ExtendTaskList method in Duke.java
ksw95 Oct 19, 2021
4e36e33
Added more invalid todo input and error handling for CheckValidTodo m…
ksw95 Oct 19, 2021
157d71e
Added more error handling for DeleteIndex method in Duke.java
ksw95 Oct 19, 2021
3ad545d
Refactoring DeleteIndex, decopling index from TaskCount variable
ksw95 Oct 19, 2021
e8fa032
Refactored DeleteIndex and CheckValidDelete methods in Duke.java for …
ksw95 Oct 19, 2021
4cecd4c
Edited MarkIndex and CheckValidDone methods for better error handling.
ksw95 Oct 19, 2021
27cce97
Refactoring methods in multiple classes.
ksw95 Oct 26, 2021
476a3fd
Refactoring method in Task.java
ksw95 Oct 26, 2021
e60b669
Added getAdditionalInfo method to Task, Event and Deadline class.
ksw95 Oct 26, 2021
33919ea
Created OpenStorageFile method and RunDuke method on Duke.java
ksw95 Oct 26, 2021
97822a8
Created CreateStorageFile method in Duke.java
ksw95 Oct 26, 2021
5a790e3
Created ReadFileToArray method and edited RunDuke method in Duke.java
ksw95 Oct 26, 2021
92216c9
Created ParseStorageLine method in Duke.java class
ksw95 Oct 26, 2021
d8ff612
Created getTodoFromLine method in Duke.java
ksw95 Oct 26, 2021
65cd710
Created getDeadlineFromLine method in Duke.java
ksw95 Oct 26, 2021
597c237
Created getEventFromLine in Duke.java class
ksw95 Oct 26, 2021
5cb0a58
Created CheckTodoLine method in Duke.java
ksw95 Oct 26, 2021
899448b
Created CheckDeadlineLine in Duke.java
ksw95 Oct 26, 2021
a9c2382
Created CheckEventLine method in Duke.java
ksw95 Oct 26, 2021
f0ef684
Added new constructor to Task class
ksw95 Oct 26, 2021
59253a4
Created writeListToFile method in Duke.java
ksw95 Oct 26, 2021
dcf399f
Created buildStorageLine method in Duke.java
ksw95 Oct 26, 2021
dc0226f
Added Ui.java class
ksw95 Oct 27, 2021
1f71295
Refactoring and moving code in Duke.java to Ui.java
ksw95 Oct 27, 2021
f451c38
Refactoring Duke.java and Ui.java
ksw95 Oct 27, 2021
73f605f
Refactor code from Duke.java to Ui.java
ksw95 Oct 28, 2021
32b0c8a
Refactor checking methods from Duke.java to Parser.java
ksw95 Oct 28, 2021
eeba680
Refactor create and open file methods from Duke.java to Storage.java
ksw95 Oct 28, 2021
cc10e7e
Refactored Duke.java
ksw95 Oct 28, 2021
4d13470
Refactored Parser.java and moved parseInput method from Duke.java to …
ksw95 Oct 28, 2021
38e3fa5
Refactored Ui.java
ksw95 Oct 28, 2021
4ec0730
Created TaskList.java and moved TaskList methods from Duke.java
ksw95 Oct 28, 2021
3d84975
Refactored methods from Duke.java to TaskList.java
ksw95 Oct 28, 2021
c4402cc
Refactored and added Parse Storage Lines methods to Parser.java
ksw95 Oct 29, 2021
c32c320
Moved Storage methods from Duke.java to Storage.java
ksw95 Oct 29, 2021
6320310
Moved DeleteIndex Method from Duke.java to TaskList.java
ksw95 Oct 29, 2021
403aa4d
Refactored TaskList.java
ksw95 Oct 29, 2021
40add9e
Created InputChecker class and moved all the input checking methods f…
ksw95 Oct 29, 2021
a568db6
Created FileLineChecker class and moved all the file line checking me…
ksw95 Oct 29, 2021
d209810
Refactored Duke.java
ksw95 Oct 29, 2021
9738ead
Created Duke Package and moved classes into package.
ksw95 Oct 29, 2021
d6fb30c
Created Models package and moved all Task classes into the package.
ksw95 Oct 29, 2021
da097ef
Created Checker package and moved Checker classes into package.
ksw95 Oct 29, 2021
37202df
Created Ui package and moved Ui class into the package
ksw95 Oct 29, 2021
59ff4a3
Imported relevant packages and refactored parameters
ksw95 Oct 29, 2021
3e71489
Added LocalDate and LocalTime variable to Deadline class and Event class
ksw95 Nov 1, 2021
3740983
Added new constructors to Deadline and Event classes
ksw95 Nov 1, 2021
2755034
Edited getTaskInfo method in Deadline and Event to return LocalDate a…
ksw95 Nov 1, 2021
4a8c853
Edited getAdditionalInfo method in Deadline and Event class
ksw95 Nov 2, 2021
15bf76f
Edited getEventFromline method to parse lines from storage file with …
ksw95 Nov 2, 2021
cb26294
Edited getDeadlineFromLine method to parse lines from storage file wi…
ksw95 Nov 2, 2021
49bdedf
Created checkTimeInput method to check for valid time format inputs a…
ksw95 Nov 2, 2021
6615cd4
Created checkDateInput method to check for date inputs with valid for…
ksw95 Nov 2, 2021
12c3753
Created buildDeadline method which initializes and returns a deadline…
ksw95 Nov 2, 2021
e1d22df
Created buildEvent method which initializes and returns an event obje…
ksw95 Nov 2, 2021
cc07342
Replaced the logic to build a newDeadline object with the buildDeadli…
ksw95 Nov 2, 2021
edf83df
Replaced the logic to build a newEvent object with the buildEvent met…
ksw95 Nov 2, 2021
3372e12
Refactor Parser.java
ksw95 Nov 2, 2021
9a77f31
Added printDate method to Deadline and Event class.
ksw95 Nov 2, 2021
250c3f9
Added comments to the class and methods in Duke.java
ksw95 Nov 6, 2021
50b6afe
Added comments to the class and methods in DukeException.java
ksw95 Nov 6, 2021
f15021f
Added comments to the class and methods in Storage.java
ksw95 Nov 6, 2021
7cb8486
Added comments to the class and methods in TaskList.java
ksw95 Nov 6, 2021
03a9882
Added comments to the class and methods in FileLineChecker.java
ksw95 Nov 6, 2021
4da432d
Added comments to the class and methods in InputChecker.java
ksw95 Nov 6, 2021
e034a42
Added comments to the class and methods in Deadline.java
ksw95 Nov 6, 2021
07c33b9
Added comments to the class and methods in Event.java
ksw95 Nov 6, 2021
8d7d59a
Added comments to the class and methods in Task.java
ksw95 Nov 6, 2021
eb9c7e8
Added comments to the class and methods in Todo.java
ksw95 Nov 6, 2021
71934b8
Added comments to the class and methods in Parser.java
ksw95 Nov 6, 2021
c58d1fd
Added comments to the class and methods in Ui.java
ksw95 Nov 6, 2021
be0dd73
Added comment for printTaskList method in TaskList.java
ksw95 Nov 6, 2021
1084620
Merge branch 'add-gradle-support'
ksw95 Nov 7, 2021
bb85945
Changed the main class location in build.gradle
ksw95 Nov 7, 2021
464cd0d
Created FileLineCheckerTest.java and JUnit tests to test methods from…
ksw95 Nov 8, 2021
7b7eb6d
Created InputCheckerTest.java and JUnit tests to test methods from In…
ksw95 Nov 8, 2021
29d493c
Created DeadlineTest.java and JUnit tests to test methods from Deadli…
ksw95 Nov 8, 2021
c17f1cc
Created EventTest.java and JUnit tests to test methods from Event.java
ksw95 Nov 8, 2021
425ae31
Created TaskTest.java and JUnit tests to test methods from Task.java
ksw95 Nov 8, 2021
e416b65
Created TodoTest.java and JUnit tests to test methods from Todo.java
ksw95 Nov 8, 2021
f017e0f
Refactored Duke.java
ksw95 Nov 8, 2021
e65f1cf
Added enum for priority level.
ksw95 Nov 8, 2021
3d39b94
Updated Task.java to have a priority variable and the methods to set it.
ksw95 Nov 9, 2021
34545a4
Updated Deadline, Event and Todo classes to return priority level alo…
ksw95 Nov 9, 2021
fa04274
Created addPriorityToTask method to add a priority to a task.
ksw95 Nov 9, 2021
eb1d20b
Edited the addEvent, addDeadline and addTodo methods so that a priori…
ksw95 Nov 9, 2021
e1b01d1
Adds priority information of a task into current storage line format …
ksw95 Nov 9, 2021
30ae57f
Edited storage line check methods in FineLineChecker.java to consider…
ksw95 Nov 9, 2021
d4bd49a
Added requestPriorityLevel method to print message to ask user to add…
ksw95 Nov 9, 2021
3fbec57
Edited parser methods to include priority level to the task object bu…
ksw95 Nov 9, 2021
e48f31e
Edited old unit tests and added new unit tests to test new methods an…
ksw95 Nov 9, 2021
0a21620
Added method to check for valid find inputs
ksw95 Nov 9, 2021
865e830
Added method to check whether descriptions of tasks in the list conta…
ksw95 Nov 9, 2021
0b3a466
Created a method to check whether an input is a find input and check …
ksw95 Nov 9, 2021
d049ebf
Edited parser to accept "find" inputs.
ksw95 Nov 9, 2021
70e2828
Edited method to find task using keywords regardless of capitaizations
ksw95 Nov 9, 2021
a8a37cd
Added test methods to InputCheckerTest.java to test the checkValidFin…
ksw95 Nov 9, 2021
f1e5e50
Repackaging of some java class files.
ksw95 Nov 10, 2021
dac6e65
Updated java files to reflect the repackaging done in previous commit.
ksw95 Nov 10, 2021
304462f
Improved the coding standard of Ui.java
ksw95 Nov 10, 2021
1b55eb5
Improved the coding standard of TaskList.java
ksw95 Nov 10, 2021
157c830
Improved the coding standard of Storage.java
ksw95 Nov 10, 2021
a56c597
Improved the coding standard of Duke.java
ksw95 Nov 10, 2021
7558dca
Improved the coding standard of FileLineChecker.java
ksw95 Nov 10, 2021
98ea50f
Improved the coding standard of InputChecker.java
ksw95 Nov 10, 2021
125793a
Edited Task.java and Parser.java to reflect repackaging of classes.
ksw95 Nov 10, 2021
8214b08
Updated Parser.java regarding refactored methods from other classes.
ksw95 Nov 10, 2021
df8d85f
Updated FileLineCheckerTest.java to reflect refactored methods from o…
ksw95 Nov 10, 2021
1d75de7
Updated InputCheckerTest.java to reflect refactored methods from othe…
ksw95 Nov 10, 2021
b20a2af
Created FileLineParser.java and moved file line related methods from …
ksw95 Nov 10, 2021
17e0b11
Refactored Parser class into InputParser class and removed the method…
ksw95 Nov 10, 2021
bc569cd
Updated class name to reflect previous refactoring
ksw95 Nov 10, 2021
4505a70
Updated class name from previous refactoring
ksw95 Nov 10, 2021
109bfcf
Refactored variable name for better coding standard for Storage.java
ksw95 Nov 10, 2021
d7c7e31
Refactored and Restructured code in InputParser class for better Code…
ksw95 Nov 10, 2021
22c2798
Refactored methods in InputChecker class for better code standard and…
ksw95 Nov 10, 2021
6646b33
Refactored methods in FileLineChecker class for better code standard …
ksw95 Nov 10, 2021
7ce7684
Refactored and restructured code in Duke.java class for better code s…
ksw95 Nov 10, 2021
88a99e9
Refactored and edited methods in FileLineParser.java class for better…
ksw95 Nov 10, 2021
9910075
Created and refactored methods in TaskList.java for better code stand…
ksw95 Nov 10, 2021
e9a8ca5
Edited code in Storage.java to reflect refactoring and edits made in …
ksw95 Nov 10, 2021
7b215fe
Edited method calls in FileLineCheckerTest class to reflect refactori…
ksw95 Nov 10, 2021
560e0ca
Edited method calls in InputCheckerTest class to reflect refactoring …
ksw95 Nov 10, 2021
e406221
Reformat code for better coding standard and quality
ksw95 Nov 11, 2021
61f18da
Refactored for better code quality
ksw95 Nov 11, 2021
8dfc383
Created DoWithin class and methods
ksw95 Nov 13, 2021
4b7f4ca
Created isValidDoWithinInput method to check whether DoWithin input i…
ksw95 Nov 13, 2021
52769e2
Created methods in InputParser.java to parse DoWithin inputs and add …
ksw95 Nov 13, 2021
ce128a3
Added methods to Storage.java to build storage lines for DoWithin obj…
ksw95 Nov 13, 2021
9129aec
Created isValidDoWithinLine method to check whether a DoWithin line f…
ksw95 Nov 13, 2021
fd05d13
Created methods in FileLineParser to parse DoWithin lines and get the…
ksw95 Nov 13, 2021
5e31590
Added comments for methods related to "DoWithin" objects.
ksw95 Nov 13, 2021
3c953ec
Refactored some methods and edited comments of various methods.
ksw95 Nov 13, 2021
9ef49b4
Added assertions
ksw95 Nov 14, 2021
25f8416
Edited Test methods to response correctly to the assertions.
ksw95 Nov 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Duke project template
# Duke.Duke project template

This is a project template for a greenfield Java project. It's named after the Java mascot _Duke_. Given below are instructions on how to use it.

Expand All @@ -13,7 +13,7 @@ Prerequisites: JDK 11, update Intellij to the most recent version.
1. If there are any further prompts, accept the defaults.
1. Configure the project to use **JDK 11** (not other versions) as explained in [here](https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk).<br>
In the same dialog, set the **Project language level** field to the `SDK default` option.
3. After that, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()` (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output:
3. After that, locate the `src/main/java/Duke.Duke.java` file, right-click it, and choose `Run Duke.Duke.main()` (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output:
```
Hello from
____ _
Expand Down
46 changes: 46 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'com.github.johnrengelman.shadow' version '5.1.0'
}

repositories {
mavenCentral()
}

dependencies {
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0'
}

test {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed"

showExceptions true
exceptionFormat "full"
showCauses true
showStackTraces true
showStandardStreams = false
}
}

application {
mainClassName = "Duke.Duke"
}

shadowJar {
archiveBaseName = "duke"
archiveClassifier = null
}

checkstyle {
toolVersion = '8.29'
}

run{
standardInput = System.in
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
183 changes: 183 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 103 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions src/main/java/Duke.java

This file was deleted.

Loading