Upload Assignment for xylo#10
Conversation
|
|
Also, try to make an interactive TUI something like this that highlights the currently typed text red if its wrongly typed in. |
|
Good work on the TUI. More things to do:
Once you do the above things, you can take a 2nd review from another 2y before submission. I also want to give you something interesting to do: Add a timed mode which should display a timer that updates every second. Think about how you would do this with common OS primitives. Hintsfork and signal handlers(you can also do it other ways if you find them to be simpler) |
…ded, defaults to asking number of words to user during runtime.
|
Good job |
| difficulty=0 | ||
|
|
||
|
|
||
| while getopts ":w:d:" flag ; do |
There was a problem hiding this comment.
Minor suggestion
You should add a simple help flag: -h, explaining which flags are used, what values are accepted
Since getopts won't accept longer flags, so only -h, not --help
| w) | ||
| if (( OPTARG < 1 || OPTARG > 359 )); then | ||
| echoc -N "Invalid value $OPTARG: must be between 0 and 360." | ||
| kill -INT $$ |
There was a problem hiding this comment.
Could just use exit 1
Nothing wrong with this though

No description provided.