Skip to content

Commit 8a38a28

Browse files
authored
hhHhHHHHHhHHhhhhhhhhHHhhHhhHhhHHhHHHhhhHhhHhhhhhhhHHhhhhhHHhhhHhh
1 parent 47808db commit 8a38a28

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ It's a program that translates a message into H's.
55
Because I can.
66

77
# How does it work?
8-
Use the "e" argument to encode and the "d" argument to decode.
9-
The input for encode cannot contain anything other than the 26 letters of the English alphabet.
8+
Use the "e" flag to encode and the "d" flag to decode.
9+
The input for encode cannot contain anything other than the 26 letters of the English alphabet or the characters `! '.,?`.
1010
```
11-
./h e "MESSAGE"
12-
./h d "HhHHhHhHhhHHhhHHHhhHHhhhhHHHhhHhHhh"
11+
./h -e "MESSAGE"
12+
./h -d "HhHHhHhHhhHHhhHHHhhHHhhhhHHHhhHhHhh"
1313
```
1414

1515
# The method behind the madness
16-
This program uppercases the input, then for each letter in the input, it subtracts 64 from the character and then translates it into binary 'H'.
17-
An uppercase 'H' stands for a 1, while a lowercase 'h' is a 0.
16+
This program uppercases the input, then for each letter in the input, it subtracts 65 from the character and then translates it into binary 'H'.
17+
An uppercase 'H' stands for a 1, while a lowercase 'h' is a 0.

0 commit comments

Comments
 (0)