Fix 2011/konno + add try.sh + format/typo checks
As it was NOT a documented feature the program now checks for an arg before proceeding. Add try.sh. Format/typo check README.md file. This should complete the review of this entry.
This commit is contained in:
1 parent
7236fee39b
commit
d70df4a6a1
4 files changed
+46
-7
No files matched your search
@@ -15,21 +15,19 @@ make
|
||||
### Try:
|
||||
|
||||
```sh
|
||||
./konno qwerty
|
||||
./konno ioccc
|
||||
./konno "the quick brown fox jumps over the lazy dog"
|
||||
./try.sh
|
||||
```
|
||||
|
||||
|
||||
## Judges' remarks:
|
||||
|
||||
This tiny program outputs what looks like a tiny keyboard.\
|
||||
OK, so the letters are missing. But that is no problem because\
|
||||
This tiny program outputs what looks like a tiny keyboard.
|
||||
OK, so the letters are missing. But that is no problem because
|
||||
this program identifies the lower case letters that were pressed!
|
||||
|
||||
It is one of those minimal keyboards without all of those
|
||||
confusing symbols keys. No shift for SHOUTING CAPS
|
||||
but at least it does not have that useless caps lock key!
|
||||
but at least it does not have that useless CAPS LOCK key!
|
||||
|
||||
We recommend that you completely deconstruct / figure out
|
||||
how this program works and does what it does. Can you
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
main(_,l)char**l;{6*putchar(--_%20?_+_/21&56>_?strchr(1[l],_^"pt`u}rxf~c{wk~zyHHOJ]QULGQ[Z"[_/2])?111:46:32:10)^_&&main(2+_,l);}
|
||||
main(_,l)char**l;{if(_>1){6*putchar(--_%20?_+_/21&56>_?strchr(1[l],_^"pt`u}rxf~c{wk~zyHHOJ]QULGQ[Z"[_/2])?111:46:32:10)^_&&main(2+_,l);}}
|
||||
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# try.sh - demonstrate IOCCC winner 2011/konno
|
||||
#
|
||||
|
||||
# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it
|
||||
# this way allows us to have the user specify a different compiler in an easy
|
||||
# way.
|
||||
if [[ -z "$CC" ]]; then
|
||||
CC="cc"
|
||||
fi
|
||||
|
||||
make CC="$CC" all >/dev/null || exit 1
|
||||
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
|
||||
echo "$ ./konno qwerty" 1>&2
|
||||
./konno qwerty
|
||||
echo 1>&2
|
||||
|
||||
echo "$ ./konno ioccc" 1>&2
|
||||
./konno ioccc
|
||||
echo 1>&2
|
||||
|
||||
echo "$ ./konno \"the quick brown fox jumps over the lazy dog\"" 1>&2
|
||||
./konno "the quick brown fox jumps over the lazy dog"
|
||||
echo 1>&2
|
||||
|
||||
echo "$ ./konno \"\"" 1>&2
|
||||
./konno ""
|
||||
|
||||
Reference in new issue
Block a user