Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lim Yee Kian] iP #154

Open
wants to merge 98 commits into
base: master
Choose a base branch
from
Open

[Lim Yee Kian] iP #154

wants to merge 98 commits into from

Conversation

yeekian
Copy link

@yeekian yeekian commented Oct 2, 2024

No description provided.

damithc and others added 30 commits July 11, 2024 16:52
In build.gradle, the dependencies on distZip and/or distTar causes
the shadowJar task to generate a second JAR file for which the
mainClass.set("seedu.duke.Duke") does not take effect.
Hence, this additional JAR file cannot be run.
For this product, there is no need to generate a second JAR file
to begin with.

Let's remove this dependency from the build.gradle to prevent the
shadowJar task from generating the extra JAR file.
Remove all traces of Duke from the source code.

Rename Duke.java to Mel.java.
Replace Duke with Mel in Mel.java and README.md.

Ensure chatbot name consistency.
The chatbot cannot store and list user-entered text.

Create class to store entered text and display them to user when requested.

No disk storage used due to focus on temporary session-based interactions.
Use List class to store user text and print list when requested.
Task are strings in an array in List class.

Incorporating additional information such as isDone status will be
increasingly complex.

Let's create a new Task class to contain task related attributes and methods.
This is a more natural representation of the tasks.
Todo extends Task class.

Class overrides the toString method to print out special description
of the Todo task.
Deadline extends Task class.

On top of the description attribute in Task, it also contains the
String by attribute to store the deadline as a string.

Class overrides the toString method to print out special description
of the Deadline task.
Event extends Task class.

On top of the description attribute in Task, it also contains the
String startDate and String endDate attributes to store the
start and end date or timings of the event.

Class overrides the toString method to print out special description
of the Event task.
Modify addItem method to add Todo, Deadline, and Event class objects
into the list of Tasks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants