z-huu / ece244

0 stars 0 forks source link

incorrect draw, delete, move error messages #12

Closed z-huu closed 1 year ago

z-huu commented 1 year ago

image

likely a problem with error precedence

z-huu commented 1 year ago

we should be outputting the errors in order from left to right; this means that before checking for too many arguments, we should instead search for s1. if s1 is found, then we'll check the next argument (check eof)

z-huu commented 1 year ago

implemented a search immediately after taking in these names and an else if to catch whether or not these names exist; this would take place before checking the presence of following arguments. the implementation for all commands is similar to this

image