Format fixes in 2000/anderson/README.md

I observed something strange though: the author noted the output of the
input 'Hello, world!' and it doesn't appear to match the program before
or after the fgets() change. I'm not sure if this is a bug or if it is
(as I guess) a formatting problem.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-19 12:00:17 -07:00
1 parent 4b235c9c3b
commit 305c8ce3e9
1 file changed
+17 -15
+17 -15
View File
@@ -1,10 +1,10 @@
# Best Use of Flags # Best Use of Flags
Glyn Anderson Glyn Anderson
Jl. Raya Serang KM 18.2 Jl. Raya Serang KM 18.2
Desa Bojong Desa Bojong
Cikupa, Tangerang, 15710 Cikupa, Tangerang, 15710
Indonesia Indonesia
## To build: ## To build:
@@ -36,7 +36,7 @@ organizer; just in case you are stranded on a desert island and need to
signal your distress to passing ships. signal your distress to passing ships.
The obfuscation in this program is truly masterful. The program is The obfuscation in this program is truly masterful. The program is
very cleverly obscured without the use of a single #define! very cleverly obscured without the use of a single `#define`!
Reformatting this program by hand :-) is the easiest way to understand Reformatting this program by hand :-) is the easiest way to understand
what is going on. what is going on.
@@ -52,17 +52,19 @@ output as a depiction of a person holding two flags, using only ASCII
characters (semaphore smileys, if you will). For example, given the characters (semaphore smileys, if you will). For example, given the
input "Hello, world!", the output will be: input "Hello, world!", the output will be:
<> <> <> <> <> <> ```
_() ()/ ()/ ()/ _\) () (/_ _\) <> <> <> <> <> <>
[] /^ |^^ /^^ /^^ [] ^^ |^^| ^^ [] [] ^^ _() ()/ ()/ ()/ _\) () (/_ _\)
<>[ [][ <>][ <>][ ][ [][] ][ ][ [] /^ |^^ /^^ /^^ [] ^^ |^^| ^^ [] [] ^^
<>[ [][ <>][ <>][ ][ [][] ][ ][
<> [] <> []
_()_ ()/ |() () _()_ ()/ |() ()
[] ^^ [] /^^ ^^| |^^| [] ^^ [] /^^ ^^| |^^|
][ <>][ ][] [][] ][ <>][ ][] [][]
```
The program is obfuscated without the use of the preprocessor or any The program is obfuscated without the use of the preprocessor or any
special compilation parameters. In fact, the program doesn't even special compilation parameters. In fact, the program doesn't even
@@ -74,7 +76,7 @@ statements to format the code properly.) There is a single string
constant which encodes the flag positions and other data needed for constant which encodes the flag positions and other data needed for
drawing the semaphore codes. drawing the semaphore codes.
The preprocessor will provide no help in un-obfuscating this code, and a The preprocessor will provide no help in de-obfuscating this code, and a
C beautifier won't get you very far either. You just have to crunch C beautifier won't get you very far either. You just have to crunch
through it. through it.