nus-cs2113-AY2223S2 / forum

10 stars 0 forks source link

Input for duke level-3 #13

Open jeromeongithub opened 1 year ago

jeromeongithub commented 1 year ago

Can we assume that there won't be tasks like "mark papers" which start with "mark"/"unmark"?

okkhoy commented 1 year ago

There are no such restrictions; input can be anything. However, you can define the format of the command (e.g., using only / as the separator)

avielcx commented 1 year ago

@okkhoy . Hi Prof, could clarify your statement above? How do we deal with inputs meant to append to the list but involve the word "mark" and "unmark"?

okkhoy commented 1 year ago

Again, same thing -- no restrictions that say "keywords" should not/cannot appear in the description so you have inputs such as: todo mark papers or add todo mark papers

avielcx commented 1 year ago

@okkhoy what if keywords appear at the start, such as mark papers ?

okkhoy commented 1 year ago

it is still a valid input 🙂 ps: you could constraint the input to say no keywords in the beginning, which is acceptable

choongzhanhong commented 1 year ago

There are no such restrictions; input can be anything. However, you can define the format of the command (e.g., using only / as the separator)

Can I confirm, this means we can specify input to be in the format like: /todo taskname so it's easier to identify an input?

okkhoy commented 1 year ago

yes you can. (pls document it in the user guide clearly)

joulev commented 1 year ago

@okkhoy Basically, if I understand this discussion correctly, this means we can define the input in any way we want, as long as the user can perform the actions defined in each level. Am I correct?

okkhoy commented 1 year ago

Yes. That is correct.